Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Processing UTF-8 encoded text file

Status
Not open for further replies.

sglab

Technical User
Jul 29, 2003
104
US
Hello everyone,

I have a question for you.
I need to do some processing on a bunch of text files, using VB 6. I know that they are UTF-8 encoded files. I tried to read them using Scripting Runtime objects and methods, but only got garbage. I tried to use ADODB Stream object as I had found a few samples on that on the Internet, but with pretty much the same results.
Is there a way to read/convert these files and their contents to ASCII format so they could become readable?
I'm using VB6 running on machines with Win2K and WinXP SP1 if this is relevant to my problem.
There's one thing, that makes this even less understandable to me: when I copied a few of these files from our server to my machine at home, I was able to read them with regular FileSystemObject methods. I assume they kept their encoding intact because when I opened them in Notepad and tried to save them through File -> Save As, the Encoding combobox would display UTF-8 format as its "first choice".
I hope I explained it well.
So, any help will be greatly appreciated.

Thank you in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top