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 : � > > 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 � didn't display properly at all - I tried ISO-8859-1 and UTF8. /Per Jessen, Zürich Hi Per thats 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.