Extended characters in AJAX response
I am reading one .htm page using XMLHTTP and printing it onto some another page. Page is being read properly but issue is with display.
htm page I am reading contains extended characters like ‘ , “ , ’ , ” , µ , etc. which are being displayed as �in firefox and square boxes in IE.
The actual page I am reading is : http://bulletlink-e5.com/article.htm
and the page which reads above page using AJAX and displays is : http://bulletlink-e5.com/d.htm
Please let me know how to fix this issue.
Thanks in advance.
Use UTF-8 both in DB and in meta characters of your web document. Use the UTF-8 encoder method of your server-side language (PHP, ASP, etc...).
Thanks for your reply. But its a static .htm file now. There is no connection with database. I am just reading these static .htm files using AJAX.
You can see static file: http://bulletlink-e5.com/article.htm
and file which reads above page: http://bulletlink-e5.com/d.htm
Both your documents have charset iso-8859-1. make them UTF-8
But... Your code works a little bit illegal, as it writes on the body of a document some parts of the other document (like meta tags) which normally stay in the HEAD, not in the body.
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)