Login | |
|
 |
RE: [HELP ME]How to read a text file encoded in Chinese... - 6/22/2006 1:53:34 AM
|
|
 |
|
| |
mikeock
Posts: 124
Score: 1
Joined: 6/8/2006
Status: offline
|
According to vbscript programmer's reference you have the following properties for OpenTextFile. OpenTextFile(filename,iomode,create,format) The main item here that concerns you is the format. The available options are 0 - default open in ASCII - - open in unicode -2 - open with sytem default format. So your line should look like Set objFile = objFSO.OpenTextFile("Readme.txt",ForReading,Fasle,-) 'for unicode. Hope this helps!
_____________________________
My sig sucks!
|
|
| |
|
|
|
 |
RE: [HELP ME]How to read a text file encoded in Chinese... - 6/24/2006 2:23:19 PM
|
|
 |
|
| |
big5
Posts: 3
Score: 0
Joined: 6/15/2006
Status: offline
|
quote:
ORIGINAL: ebgreen I've never done this, but if it is straight text, I wonder if there would be some way to open it in Word? Thanks for your Reply First. I'm sorry for my poor english,It seems you mistook my meaning. I means, For example, your PC's OS language is English, My PC's OS language is Simplified Chinese, I sent a text file that encoded in Simplified Chinese (GB2312),When you open that file,you may found it's gibberish(OR "Messy code"? I don't know how to describe it),It's unreadable signal . so,you must convert it to English Coding (ISO , Windows ,OR Unicode? I don't know exactly . ) first, right? My question is , how to convert it in VB Script? Thanks a lot .
|
|
| |
|
|
|
 |
RE: [HELP ME]How to read a text file encoded in Chinese... - 6/26/2006 3:00:34 AM
|
|
 |
|
| |
kirrilian
Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
|
im pretty sure that no one will be able to view it properly without the right font/language pack installed is that what you are asking?
_____________________________
Have you searched here ? VBScript Fundamentals My Site
|
|
| |
|
|
|
|
|