Shoutbox

Ajax unicode - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Ajax unicode (/showthread.php?tid=68719)

Ajax unicode by Huhu_Manix on 11-21-2006 at 04:52 PM

Hi,

When i use AJAX, the returned text contain a lot of "" ( a box ^^ ), can we get the real letter ? :'(

Thanks

code:
ajax.open("GET", url, true);
ajax.onreadystatechange = function(){
    if (ajax.readyState == 4){
        var ht = ajax.responseText;
    }
}

RE: Ajax unicode by Spunky on 11-21-2006 at 05:10 PM

If it returns as a box, doesn't it mean that the character isn't printable? (I know sometimes they show up for fonts that don't have that glyph) Could you not output the ajax and see if it still works or find out which characters it's replacing and why. If you find out why you get a lot of them it may help as you can find a way around it or a way of converting them back...


RE: Ajax unicode by Huhu_Manix on 11-21-2006 at 05:45 PM

Problem come from "é" and "è" characters, there's no problem if I use "Debug.Trace("éééèèè");" but characters don't work with ajax.
It "fusion" the famous character with it 2 next to become a box. ( ex : "némo" become "n[]" )

I can remove all boxs but there's a lot a them in french and the text become borring to read.

I think i've found...