Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language

Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Ajax Programming

French accent problem when using ajax

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.

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

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

With Regards

use javascript function before send data -> encodeURI
or use hexa of caracter

On 3/20/07, bss <masho@gmail.com> wrote:

Sem mais para o momento,
Rodrigo Souza

--------------------------------------------------------------------------- -----
:: Rodrigo Souza dos Santos
:: Curitiba - Paran - Brasil
:: rodrigosouzadossan@gmail.com
--------------------------------------------------------------------------- -----


To assure the page are using the correct charset for your content you have
to determine charset still in server-side. It may work in all server-side

header("Content-Type: text/html; charset=iso-8859-1");

Response.ContentType = "text/html; charset=iso-8859-1"

Enjoy it! ;)

On 3/20/07, Rodrigo Souza <rodrigosouzadossan@gmail.com> wrote:

Gabriel Veloso
Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc