Re: [PHP] Replacing accented characters by non-accented characters

2008-05-14 Thread Dotan Cohen
2008/5/14 Bastien Koert <[EMAIL PROTECTED]>: > Why should the server folder name matter? Make it a hash and store the user > provided name in a db. Then when presenting the data to the user just show > the user provided name as the folder name. This would also handle multiple > users trying to use

Re: [PHP] Replacing accented characters by non-accented characters

2008-05-14 Thread Bastien Koert
On Tue, May 13, 2008 at 8:39 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > Yannick Warnier wrote: > > > That would probably work out if it wasn't too dependent on the locales > > to work. I'm developing an open-source product which could end up on a > > server without the locales for French but be u

Re: [PHP] Replacing accented characters by non-accented characters

2008-05-13 Thread Per Jessen
Yannick Warnier wrote: > That would probably work out if it wasn't too dependent on the locales > to work. I'm developing an open-source product which could end up on a > server without the locales for French but be used by some French > people, which would make (as far as I can get out of one com

Re: [PHP] Replacing accented characters by non-accented characters

2008-05-12 Thread tedd
Yannick: Considering that we just had a flurry of pet-peeves on the list, I rant on one of mine. At 1:25 PM -0500 5/12/08, Yannick Warnier wrote: I'm trying to give a universally-manageable directory name to an item using a free-text title. I want to avoid every type of accentuated character

Re: [PHP] Replacing accented characters by non-accented characters

2008-05-12 Thread Dotan Cohen
2008/5/12 Yannick Warnier <[EMAIL PROTECTED]>: >> Why are you removing the accents? Why not store/process the data as >> UTF-8, which supports all the accents in all the languages, and even >> non-latin languages. You mention Arabic, which does not use accented >> latin characters (Maybe you are th

Re: [PHP] Replacing accented characters by non-accented characters

2008-05-12 Thread Yannick Warnier
Le lundi 12 mai 2008 à 19:07 +0300, Dotan Cohen a écrit : > 2008/5/12 Yannick Warnier <[EMAIL PROTECTED]>: > > Hello, > > > > I've been trying to find something nice to transform an accentuated > > string into a non-accentuated string. Obviously, I'm mostly playing > > inside the European languages

Re: [PHP] Replacing accented characters by non-accented characters

2008-05-12 Thread Dotan Cohen
2008/5/12 Yannick Warnier <[EMAIL PROTECTED]>: > Hello, > > I've been trying to find something nice to transform an accentuated > string into a non-accentuated string. Obviously, I'm mostly playing > inside the European languages, but any method that could transform > arabic or asian characters to

Re: [PHP] Replacing accented characters by non-accented characters

2008-05-12 Thread Yannick Warnier
Thanks James, That would probably work out if it wasn't too dependent on the locales to work. I'm developing an open-source product which could end up on a server without the locales for French but be used by some French people, which would make (as far as I can get out of one comment from Richie

Re: [PHP] Replacing accented characters by non-accented characters

2008-05-12 Thread James Dempster
oops wrong way round echo iconv('UTF-8', 'ISO-8859-1//TRANSLIT', 'français'); On Mon, May 12, 2008 at 4:27 PM, James Dempster <[EMAIL PROTECTED]> wrote: > maybe try iconv (http://uk.php.net/manual/en/function.iconv.php) > e.g. > > echo iconv('ISO-8859-1', 'UTF-8//TRANSLIT', 'français'); > > -- >

Re: [PHP] Replacing accented characters by non-accented characters

2008-05-12 Thread James Dempster
maybe try iconv (http://uk.php.net/manual/en/function.iconv.php) e.g. echo iconv('ISO-8859-1', 'UTF-8//TRANSLIT', 'français'); -- /James On Mon, May 12, 2008 at 4:09 PM, Yannick Warnier <[EMAIL PROTECTED]> wrote: > Hello, > > I've been trying to find something nice to transform an accentuated >

[PHP] Replacing accented characters by non-accented characters

2008-05-12 Thread Yannick Warnier
Hello, I've been trying to find something nice to transform an accentuated string into a non-accentuated string. Obviously, I'm mostly playing inside the European languages, but any method that could transform arabic or asian characters to plain non-accentuated characters would be perfect. I have