472,119 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,119 software developers and data experts.

French Accents missing problem

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
1 2838
acoder
16,027 Expert Mod 8TB
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.

Similar topics

2 posts views Thread by c w | last post: by
2 posts views Thread by yearTiger2002 | last post: by
3 posts views Thread by Alt255 | last post: by
3 posts views Thread by bss | last post: by
5 posts views Thread by Amy L. | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.