RE: [PHP] French character string encoding

[email protected] ("Angelo Zanetti")
Newsgroups php.general
Message-ID <[email protected]>

-----Original Message-----
From: Per Jessen [mailto:[email protected]] 
Sent: 24 April 2008 18:26
To: [email protected]
Subject: Re: [PHP] French character string encoding

Angelo Zanetti wrote:

> Hi all,
> 
> If I have the following French character : &#65533;
> 
> And I want to display it properly, IE: how it is meant to be displayed
> as the proper french character, which encoding do I need to use?
> 
> Or is there a string function which can convert this to the correct
> character?

Your &#65533; didn't display properly at all - I tried ISO-8859-1 and
UTF8. 


/Per Jessen, Zürich


Hi Per that’s the problem I am having, this is how data from a project I
inherited is saved in the DB and I cant get it to show. 

However I get normal data eg: ème est très haute. To show if its saved like
that in the DB, I just do: 

echo utf8_encode("ème est très haute.");

and it works well. Is there anyway you think I can get the data in the DB to
format correctly perhaps using some sort of string command?

Thanks for your help again.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.