<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<META content="MSHTML 6.00.6001.18148" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I have been looking at that problem with special 
characters that I get as&nbsp;a result from the query. The data is stored in the 
ISO-8859-2 (Latin 2) encoding. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>As I mentioned before, my thoughts that the problem 
is somehow connected&nbsp;with the getHTTPObject, now seem to be true. This 
seems to be an IE "bug", i.e. I am unable to find a solution to get it to work 
in both IE and FireFox at least. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>The address of the script is: <A 
href="http://liam.odpri.si/~matej/charset/index.php">http://liam.odpri.si/~matej/charset/index.php</A></FONT><FONT 
face=Arial size=2>. I managed to get it to work in the FireFox, but IE doesn't 
seem to have the&nbsp;function overrideMimeType with which I am able to set the 
proper encoding. The <A 
href="http://liam.odpri.si/~matej/charset/return.php">http://liam.odpri.si/~matej/charset/return.php</A>&nbsp;file 
doesn't do anything but just returns (echoes) the symbol "sh" in the ISO-8859-2 
encoding. When I open this return.php in no matter which browser (and set the 
encoding to the ISO-8859-2), I always successfully get this symbol printed as it 
should be.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>The function doWork is just that:</FONT></DIV>
<DIV><FONT face=Arial size=2>function doWork(){<BR>&nbsp;&nbsp;&nbsp; httpObject 
= getHTTPObject();<BR>&nbsp;&nbsp;&nbsp; if (httpObject != null) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; httpObject.open("GET", 
"return.php", true);<BR></FONT><FONT face=Arial 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
(httpObject.overrideMimeType) { httpObject.overrideMimeType("text/html; 
charset=ISO-8859-2"); }</FONT></DIV>
<DIV><FONT face=Arial size=2>//if I do not&nbsp;do "if", there is an error in 
IE7&nbsp;popped up<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
httpObject.send(null);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
httpObject.onreadystatechange = setOutput;<BR>&nbsp;&nbsp;&nbsp; 
}<BR>}<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>I already tried with 
"\httpObject.setRequestHeader("Content-Type", "text/html; 
charset=ISO-8859-2")\", but then in IE7 the "?" is printed instead of 
"sh".</DIV></FONT>
<DIV><FONT face=Arial size=2>&nbsp;</DIV></FONT>
<DIV><FONT face=Arial size=2>Here are some maybe useful link for this entire 
problem:</FONT></DIV>
<DIV><FONT face=Arial size=2>- <A 
href="http://squio.nl/blog/2006/06/27/xmlhttprequest-and-character-encoding/">http://squio.nl/blog/2006/06/27/xmlhttprequest-and-character-encoding/</A></FONT></DIV>
<DIV><FONT face=Arial size=2>- <A 
href="http://www.dynamicdrive.com/forums/archive/index.php/t-23633.html">http://www.dynamicdrive.com/forums/archive/index.php/t-23633.html</A></FONT></DIV>
<DIV><FONT face=Arial size=2>- <A 
href="http://www.activewidgets.com/javascript.forum.12114.10/no-subject.html">http://www.activewidgets.com/javascript.forum.12114.10/no-subject.html</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>This is my little bit of information found out so 
far. I hope there will be a solution for this thing.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Matej Serc</FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><A 
href="mailto:matej@matnet.net">matej@matnet.net</A></FONT></FONT><FONT 
face=Arial></DIV></FONT></BODY></HTML>