Anees a écrit :
Hi,
I want to display some germen text in my site.
and it is coming well when i have given content="text/html;
charset=utf-8" in meta Tag
But when i takes some data (as HTML) from server through AJAX and
insert it into a Div using innerHTML property,the characters are not
displaying well
In what charset are your html datas encoded ?
With which browser(s) does that happens ?
With my tries about Ajax on a server that does'nt send charset headers
I use only files written (coded ?) in utf-8
I have same problem as yours with files in utf-8 only with Safari which
wants absolutely to read them in iso-8859-1.
For him I inserts the xml declaration on top of files to call :
<?xml version="1.0" encoding="utf-8"?>
and that seems to fix the question.
--
sm