Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Access External data > How to read UTF...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 10828 of 11313
Post > Topic >>

How to read UTF-16 files

by bradamodeo@[EMAIL PROTECTED] Jul 24, 2008 at 08:58 AM

I am trying to read in text files that are in UTF-16 format, using the
following code:

            Dim fso
            Dim infile
            Set fso = CreateObject("Scripting.FileSystemObject")
            Set infile = fso.opentextfile(vFile, ForReading, True)
            Do While infile.atendofstream = False
                strHoldLine = infile.readline
                       o
                       o
                       o
            Loop

This works fine for standard UTF-8 files, but when I try to read
UTF-16 files, I get garbage in the strHoldLine variable.  I have
verified through other programs (such as XMLSpy) that the UTF-16 files
are readable, just not by access.

Any help is GREATLY appreciated!


Brad
 




 1 Posts in Topic:
How to read UTF-16 files
bradamodeo@[EMAIL PROTECT  2008-07-24 08:58:58 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 18:21:22 CST 2008.