Michael
Tue Sep 16 20:59:03 CDT 2003
Christian Roost wrote:
> I have a listbox which items I want to save in a textfile. This one
> must be ascii but so far as I found out the list elements are all
> unicode. How can I convert this Unicode ones into good old Ascii
> ones? I already tried StrConv(...,vbFromUnicode) but there only my
> debugger strikes? What shall I do?
> thx 4 any hint
> chris
Read up on the TextStream objects returned by the OpenTextFile and/or
CreateTextFile methods...
All strings in VBScript are Unicode internally. They will be converted to
ASCII when written to a TextStream opened in ASCII mode (which is the
default).
--
Michael Harris
Microsoft.MVP.Scripting
Windows 2000 Scripting Guide
Microsoft® Windows®2000 Scripting Guide
http://www.microsoft.com/technet/scriptcenter/scrguide/sagsas_overview.asp
System Administration Scripting Guide - samples scripts
http://www.microsoft.com/downloads/release.asp?ReleaseID=38942
WSH 5.6 documentation download
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en