August 30th, 2006, 04:53 PM
Xml object and weird "?" characters
I'm trying to get a .txt file from another domain using xml object; this file includes special characters like ñ, á, é, í, ó, ú and so on.
The code I'm using is:
Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")
xml.Open "GET", "http://domain/file.txt", False
If err.number = 0 then filebody = xml.responseText
set xml = nothing
The problem is that all those chars are converted to "?" symbols!
How can I get rid of this thing and get the original characters back?
Thanks a lot 4 your time!
August 30th, 2006, 07:36 PM
do you have access to the actual xml file? check that the encoding on the file is UTF-16
Scott Perham, BSc (hons), CCNA, MCPD
August 31st, 2006, 08:28 AM
not xml but txt file
Thanks scoper for replying!
The file is a simple text file, a "name.TXT", plain text.
April 2nd, 2013, 03:08 PM
Do you have the soluction?
I have similar problem, but I cann´t with the problem.
Can you help me?