Re: [PHP] Replacing accented characters

2010-03-04 Thread Daniel Brown
On Thu, Mar 4, 2010 at 12:57, Skip Evans wrote: > Hey all, > > Does anyone have a function that replaces accented characters > with the non-accent equals? This one by Sven on 21-APR-2005: "Ae", "\xC6"=>"AE", "\xD6"=>"Oe", "\xDC"=>"Ue", "\xDE"=>"TH", "\xDF"=>"ss", "\xE4"=>"ae", "\xE6"=>"ae",

Re: [PHP] Replacing accented characters

2010-03-04 Thread Ashley Sheridan
On Thu, 2010-03-04 at 11:57 -0600, Skip Evans wrote: > Hey all, > > Does anyone have a function that replaces accented characters > with the non-accent equals? > > I can't figure out how to get them out of the Ubuntu keyboard > the way it is configured so I've just tried three different > functi

[PHP] Replacing accented characters

2010-03-04 Thread Skip Evans
Hey all, Does anyone have a function that replaces accented characters with the non-accent equals? I can't figure out how to get them out of the Ubuntu keyboard the way it is configured so I've just tried three different functions off the Internet and none of them have worked. Thanks, Skip -- =

Re: [PHP] Replacing accented characters?

2010-01-28 Thread Robert Cummings
Robert Cummings wrote: Paul M Foster wrote: On Thu, Jan 28, 2010 at 02:38:52PM -0500, tedd wrote: My point was more to the theme that we are an eclectic group of people with a wide range of knowledge and skills. Individually we may have trouble finding our ass, but together we can find the

Re: [PHP] Replacing accented characters?

2010-01-28 Thread Robert Cummings
Paul M Foster wrote: On Thu, Jan 28, 2010 at 02:38:52PM -0500, tedd wrote: My point was more to the theme that we are an eclectic group of people with a wide range of knowledge and skills. Individually we may have trouble finding our ass, but together we can find the answer to many things.

Re: [PHP] Replacing accented characters?

2010-01-28 Thread Paul M Foster
On Thu, Jan 28, 2010 at 02:38:52PM -0500, tedd wrote: > My point was more to the theme that we are an eclectic group of people > with a wide range of knowledge and skills. Individually we may have > trouble finding our ass, but together we can find the answer to many > things. I just got th

Re: [PHP] Replacing accented characters?

2010-01-28 Thread tedd
At 9:28 AM -0500 1/28/10, Robert Cummings wrote: tedd wrote: At 12:17 PM +0100 1/28/10, Marcus Gnaß wrote: On 28.01.2010 03:40, Paul M Foster wrote: On Wed, Jan 27, 2010 at 04:55:46PM -0600, Skip Evans wrote: Hey all, I'm looking for recommendations on how to replace accented characters

Re: [PHP] Replacing accented characters?

2010-01-28 Thread Robert Cummings
tedd wrote: At 12:17 PM +0100 1/28/10, Marcus Gnaß wrote: On 28.01.2010 03:40, Paul M Foster wrote: On Wed, Jan 27, 2010 at 04:55:46PM -0600, Skip Evans wrote: Hey all, I'm looking for recommendations on how to replace accented characters, like e and u with those two little dots above t

Re: [PHP] Replacing accented characters?

2010-01-28 Thread tedd
At 12:17 PM +0100 1/28/10, Marcus Gnaß wrote: On 28.01.2010 03:40, Paul M Foster wrote: On Wed, Jan 27, 2010 at 04:55:46PM -0600, Skip Evans wrote: Hey all, I'm looking for recommendations on how to replace accented characters, like e and u with those two little dots above them, with the

Re: [PHP] Replacing accented characters?

2010-01-28 Thread Marcus Gnaß
On 28.01.2010 03:40, Paul M Foster wrote: > On Wed, Jan 27, 2010 at 04:55:46PM -0600, Skip Evans wrote: > >> Hey all, >> >> I'm looking for recommendations on how to replace accented >> characters, like e and u with those two little dots above >> them, with the regular e and u characters. > > FWI

Re: [PHP] Replacing accented characters?

2010-01-27 Thread Paul M Foster
On Wed, Jan 27, 2010 at 04:55:46PM -0600, Skip Evans wrote: > Hey all, > > I'm looking for recommendations on how to replace accented > characters, like e and u with those two little dots above > them, with the regular e and u characters. FWIW, those two dots are called an "umlaut". Paul -- Pa

Re: [PHP] Replacing accented characters?

2010-01-27 Thread Skip Evans
Looks like strtr() is the way to go? Skip Skip Evans wrote: Hey all, I'm looking for recommendations on how to replace accented characters, like e and u with those two little dots above them, with the regular e and u characters. I'm finding some solutions via Google, but would like to hear

[PHP] Replacing accented characters?

2010-01-27 Thread Skip Evans
Hey all, I'm looking for recommendations on how to replace accented characters, like e and u with those two little dots above them, with the regular e and u characters. I'm finding some solutions via Google, but would like to hear from some of you to hear how you handle those situations. T

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