[dba-Tech] vb script

Francisco Tapia fhtapia at gmail.com
Mon Jan 30 17:44:02 CST 2006


I have a text file with unicode characters... when I open it up in notepad i
can read these characters just fine, I am running a vbscript script over it
and I noticed that when It feeds the string into a variable it just uses
some other wierd characters instead example:


         Set docString = file.OpenAsTextStream(ForReading,
TristateUseDefault)
         txtString = docString.ReadAll


the result string is:
Spindeloption liefert ein höheres Drehmoment im höheren

but the source text document shows the following string

Spindeloption liefert ein höheres Drehmoment im höheren

This is being ran from a vbscript... anybody have any idea as to why?

--
-Francisco
http://pcthis.blogspot.com |PC news with out the jargon!
http://sqlthis.blogspot.com | Tsql and More...



More information about the dba-Tech mailing list