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!

Converting Windows-1252 to UTF-8

Status
Not open for further replies.

developer155

Programmer
Jan 21, 2004
512
US
I ahve an XML file that contains some Windows 1252 characters like ' . The XML file has to be
<?xml version="1.0" encoding="utf-8"?>
Is there a way I can write a vb script to read the original file and spit out a file that does not contain Win 1252 characters?

thanks
 
There is an excellent freeware to convert various file types and encodings, called Rainbow:

From what you describe, you probably want to encode it to "escaped unicode"?
In any case if you need to do several conversions, I recommend Rainbow. It can work through all files in sbufolders of a pre-set root directory and convert from RTF, UTF-8, UTF-16, ASCII-Text, HTML...->UTF-8, UTF-16, Escaped Unicode, ASCII...

Good luck!
Andy

[blue]An eye for an eye only ends up making the whole world blind. - "Mahatma" Mohandas K. Gandhi[/blue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top