Replacing accented characters?
Replacing accented characters?
am 27.01.2010 23:55:46 von 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.
Thanks,
Skip
--
====================================
Skip Evans
PenguinSites.com, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://penguinsites.com
------------------------------------
Those of you who believe in
telekinesis, raise my hand.
-- Kurt Vonnegut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Replacing accented characters?
am 28.01.2010 00:01:59 von 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 from some
> of you to hear how you handle those situations.
>
> Thanks,
> Skip
>
--
====================================
Skip Evans
PenguinSites.com, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://penguinsites.com
------------------------------------
Those of you who believe in
telekinesis, raise my hand.
-- Kurt Vonnegut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Replacing accented characters?
am 28.01.2010 00:25:00 von Ross McKay
On Wed, 27 Jan 2010 16:55:46 -0600, Skip Evans wrote:
>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.
$newText = iconv('UTF-8', 'ASCII//TRANSLIT', $text);
But ensure you have set your locale properly.
http://au.php.net/manual/en/function.iconv.php
--
Ross McKay, Toronto NSW Australia
"All we are saying
Is give peas a chance" - SeedSavers
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re: Replacing accented characters?
am 28.01.2010 00:38:42 von Ashley Sheridan
--=-Lm+Pka5sIvOTkogTrMI7
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
On Thu, 2010-01-28 at 10:25 +1100, Ross McKay wrote:
> On Wed, 27 Jan 2010 16:55:46 -0600, Skip Evans wrote:
>=20
> >I'm looking for recommendations on how to replace accented=20
> >characters, like e and u with those two little dots above=20
> >them, with the regular e and u characters.
>=20
> $newText =3D iconv('UTF-8', 'ASCII//TRANSLIT', $text);
>=20
> But ensure you have set your locale properly.
>=20
> http://au.php.net/manual/en/function.iconv.php
> --=20
> Ross McKay, Toronto NSW Australia
> "All we are saying
> Is give peas a chance" - SeedSavers
>=20
Don't forget that changing some characters can actually change the words
and meanings of words. While an ë might look like and e, it's actually=
a
completely different character, with a different pronunciation to go
with it.
Is there some particular web service you're using that doesn't support
utf8 character sets?=20
Thanks,
Ash
http://www.ashleysheridan.co.uk
--=-Lm+Pka5sIvOTkogTrMI7--
Re: Re: Replacing accented characters?
am 28.01.2010 01:33:23 von Ross McKay
On Wed, 27 Jan 2010 23:38:42 +0000, Ashley Sheridan wrote:
>Don't forget that changing some characters can actually change the words
>and meanings of words. While an ë might look like and e, it's actually a
>completely different character, with a different pronunciation to go
>with it. [...]
True. But for the purposes of "cleaning up" URLs (not I18N friendly, but
practical on Anglo-centric websites) it has its uses.
--
Ross McKay, Toronto, NSW Australia
"Faced with a choice between the survival of the planet
and a new set of matching tableware, most people would
choose the tableware" - George Monbiot
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Replacing accented characters?
am 28.01.2010 03:40:08 von 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
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Replacing accented characters?
am 28.01.2010 12:17:37 von gonatan
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.
>
> FWIW, those two dots are called an "umlaut".
>
> Paul
>
FWIW, the whole letters ÄäÖöÜü are called "Umlaute" (umlauts).
The two dots above *these* letters are "Umlautzeichen" (umlaut marks).
But two dots above an e or i are called "Trema" (diacritic mark).
Marcus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Replacing accented characters?
am 28.01.2010 15:15:09 von 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 regular e and u characters.
>>
>> FWIW, those two dots are called an "umlaut".
>>
>> Paul
>>
>
>FWIW, the whole letters ÄäÖöÜü are called "Umlaute" (umlauts).
>The two dots above *these* letters are "Umlautzeichen" (umlaut marks).
>But two dots above an e or i are called "Trema" (diacritic mark).
>
>Marcus
On what other list could we learn that?
Thanks,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Replacing accented characters?
am 28.01.2010 15:28:48 von 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
>>>> them, with the regular e and u characters.
>>> FWIW, those two dots are called an "umlaut".
>>>
>>> Paul
>>>
>> FWIW, the whole letters ̟̊̚ are called "Umlaute" (umlauts).
>> The two dots above *these* letters are "Umlautzeichen" (umlaut marks).
>> But two dots above an e or i are called "Trema" (diacritic mark).
>>
>> Marcus
>
> On what other list could we learn that?
A linguistics list I'd wager.
:B
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Replacing accented characters?
am 28.01.2010 20:38:52 von 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, 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
>>>>
>>>FWIW, the whole letters ÄäÖöÜü are called "Umlaute" (umlauts)=
>>>The two dots above *these* letters are "Umlautzeichen" (umlaut marks).
>>>But two dots above an e or i are called "Trema" (diacritic mark).
>>>
>>>Marcus
>>
>>On what other list could we learn that?
>
>A linguistics list I'd wager.
>
>:B
>
>Cheers,
>Rob.
And let's not forget the Trema list. :-)
My point was more to the theme that we are an=20
eclectic group of people with a wide range of=20
knowledge and skills. Individually we may have=20
trouble finding our ass, but together we can find=20
the answer to many things.
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Replacing accented characters?
am 28.01.2010 22:20:30 von 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 this image of all of us at a table at the local Chili's
twirling around in place like dogs, trying to find our asses.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Replacing accented characters?
am 28.01.2010 22:23:14 von 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.
>
> I just got this image of all of us at a table at the local Chili's
> twirling around in place like dogs, trying to find our asses.
I wish you'd stop grabbing ming!! :B
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Replacing accented characters?
am 28.01.2010 22:26:58 von 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 answer to many
>>> things.
>> I just got this image of all of us at a table at the local Chili's
>> twirling around in place like dogs, trying to find our asses.
>
> I wish you'd stop grabbing ming!! :B
Mine even... doh!
--
http://www.interjinn.com
Application and Templating Framework for PHP
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php