Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks, we've been banging on this for a few days now and I've posted
a new question that reflects some little progress we've made and more detail on the problem: http://groups.google.com/group/micro...f2fb1df?hl=en# It turns out the server requires Shift-JIS, not Unicode. But we're still trying to go through Unicode, then convert the Unicode to Shift- JIS, because Excel won't save as Shift-JIS. Details in the thread referenced above. I hope you look at that post and comment. Thanks, Greg On Apr 29, 5:10 am, James Snell wrote: Sorry for the delay - I'm not always around to respond to posts. FileSystemObject is unicode aware in that you can open a file with a unicode name, the content that is returned by a stream is language neutral (it's just a bytestream) which would need to be handled downstream. By the same token you could oly open a unicode filename if you were able to represent that unicode name in VBA. I've not looked for existing libraries, on further inspection there are some unicode functions available in vba such as ascw() & chrw(). It may be easier to just open the file up as a hidden sheet / workbook. The biggest issue is that you'd have to know what flavour of unicode the server can speak (if any). If that's only ANSI (in which case you'd have to rethink the use of japanese) if it's UTF-7 / UTF-8 then a script like (http://www.planet-source-code.com/vb...sp?txtCodeId=4...) might help. Do you have the info about the server? Once you know what that handles then you might be able to web-search for a conversion script... "Greg Lovern" wrote: On Apr 24, 3:31 pm, James Snell wrote: You need some unicode aware string tools, I'm not aware of any for vba I was under the impression that FileSystemObject is Unicode-aware; is that not correct? proper localisation functions. Are these available in a library, or do you mean rolling your own? Greg |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA macro for reading text file into Excel | Excel Discussion (Misc queries) | |||
Saving double-byte characters as unicode text in a CSV file | Excel Discussion (Misc queries) | |||
Reading from a text file | Excel Discussion (Misc queries) | |||
reading from text file to excel file | Excel Programming | |||
how to produce a csv file from a unicode-saved text file | Excel Programming |