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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XMLHTTP with Japanese character set

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
My job is to display Japanese characters using XMLHTTP.
I don't have any problem with english (1 byte) but whenever
I "GET" Japanese website, all characters (2 bytes) are messed up. anyone know how I can fix this?

here is code.
Set objHTTP = Server.CreateObject("Microsoft.XMLHTTP")
objHTTP.Open "GET", false
objHTTP.SetRequestHeader "Content-Type","text/html;
charset=ISO-2022-JP"
objHTTP.Send ""
StrResult=objHTTP.responseText

response.write StrResult

thank you very much in advance.
 
Hi,

I've a similar issues traying to retrieve page written in Italian language, where all the accented vowels are not displayed. Anybody knows how to solve the problem?

thanks,
-Enrico
 
Shouldn't that be an encoding problem? I don't know VB, but can you set the default encoding odf the file you receive, for your own system.

Usually, Japanese text is encoded as UTF-16. The italian vowels you mention (Enrico) are in the upper set of ASCII characters >128, and they do not display correctly using UTF-8.

I don't know for sure, but I guess this would be a system configuration problem. The files you retrieve could be just right, but their display can be messed up. What are you using for viewing the xml content? [red]Nosferatu[/red]
We are what we eat...
There's no such thing as free meal...
once stated: methane@personal.ro
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top