Link to home
Start Free TrialLog in
Avatar of no_skill
no_skill

asked on

How can i open a textfile as utf-8 in vb6

i want to convert a utf-8 encoded file to unicode, but when i open the source file via FileSystemObject.OpenTextFile, the utf-8 encoded characters (ö,ä,ü,...) wont be loaded correct. (ö-> Ķ )

i think utf-8 encoding isn't recognised by filesystemobject.opentextfile, but i found no other object for handling text files.

i could load it binary and convert to unicode, but i don't know how to convert utf-8 -> unicode manually.

oh: the source file is a xml file. loading via MSXML.DOMDocument works perfectly, but when i save it as UNICODE
(adding a preprocessor tag) i can't load it anymore.
Avatar of DanAvni
DanAvni
Flag of Israel image

why don't you load it using MSXML objects?
ASKER CERTIFIED SOLUTION
Avatar of no_skill
no_skill

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of no_skill
no_skill

ASKER

thanks!