By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,874 Members | 1,058 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,874 IT Pros & Developers. It's quick & easy.

French Accents missing problem

P: 1
Dear All,

I have developing a French website using PHP & Ajax. In that I tried to display some French texts from mysql database using Ajax. Form local I got the text from db with
Correct accents but in online French accents are missing. The text displays like this “de r?isation pour regroup?a majorit?es “. I declared following code in the head section of the file.

[HTML]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script src="include/showartical.js" type="text/javascript" language="javascript" > </script>
</head>
[/HTML]When i display the text with out using Ajax I get the French text perfectly.

Please help me how to display French text without missing any accents using PHP & Ajax.

With Regards
Ashok
Mar 20 '07 #1
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
Expand|Select|Wrap|Line Numbers
  1. xmlHttp.setRequestHeader("content-type","text/html; charset=iso-8859-1");
Feb 26 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.