List Info

Thread: Re: French accent problem when using ajax




Re: French accent problem when using ajax
country flaguser name
Sweden
1969-12-31 18:00:00
> French accent problem when using ajax
>     Posted by: "boss john" bss_johnyahoo.com
bss_john
>     Date: Tue Mar 20, 2007 9:28 am ((PDT))
> 
> 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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transiti
onal.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>
> 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
> 
> 

Make sure your text is stored as utf-8 and that you also use
utf-8 for 
the charset in the http-equiv meta.




-- 
This message has not been scanned for viruses.

Since I do not use a Microsoft operating
system or software, and use only plaintext
for email, there is little need for me to do so.


Visit http://aiaiai.com for
more groups to join 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    ht
tp://groups.yahoo.com/group/JavaScript_Official/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/JavaScript_Official/join

    (Yahoo! ID required)

<*> To change settings via email:
    mailto:JavaScript_Official-digest@yahoogroups.com 
    mailto:JavaScript_Official-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    JavaScript_Official-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 

Re: French accent problem when using ajax
country flaguser name
France
2007-03-21 02:47:21

At 9:06 AM +1000 3/21/07, Jon Stephens wrote:
&gt; > 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.
&gt;>
>>; <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
>>;"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
>;> <html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;>
>> <head&gt;
>&gt; <meta http-equiv="Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot; />
&gt;> <script src="include/showartical.js" type=";text/javascript";
>>;language=&quot;javascript" > </script>
>;> </head&gt;
>&gt; 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.

In my experience there is a big problem with that in Safari. All
browsers (as other have replied already) prefer UTF-8 by default, and
it would certainly be a good idea that you switch everything to
UTF-8. However I was unable to have Safari read a simple UTF-8 text
file. UTF-8 XML files are OK, but I could not have Safari read a mere
UTF-8 text, as it always reads it as ISO-8859-1 no matter what I
specify in the various headers.

Emmanuel

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )