Page 1 of 1

European characters (Western charset) with Ajax/PHP

Posted: Mon May 25, 2009 1:02 pm
by worldnet
How to handle western characters(European charset) is displayed in unreadable format during the data fetched from PHP using Ajax?

Re: European characters (Western charset) with Ajax/PHP

Posted: Mon May 25, 2009 2:30 pm
by Darhazer
Best of all use utf-8 ;-)

Well, actually, what is the character set of the database and on the page?
When you output something in AJAX, always set the Content-type header with the proper encoding...