Re: Translate accented characters by JezB
JezB
Mon May 09 07:53:32 CDT 2005
I'm passing artist/album names stored within mp3 files through Amazon's web
service, to look up album details. Many of the artist names have accented
characters, since I am interested in world/celtic music, but Amazon's serach
criteria seems to be based on normalized unaccented strings. A real pain to
edit all my id3 tags !
"Mark Rae" <mark@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:OdlNrTJVFHA.2420@TK2MSFTNGP12.phx.gbl...
> "JezB" <jezbroadsword@blueyonder.co.uk> wrote in message
> news:uQ54T9IVFHA.3636@TK2MSFTNGP14.phx.gbl...
>
>> Is there anything in the framework which will help translate accented
>> characters in strings to their standard counterparts?
>>
>> eg. "Gráda" to "Grada"
>
> Interestingly enough, I was looking for exactly the same thing recently,
> and was unable to find anything native to the Framework, so I ended up
> writing my own mapping function. Easy enough for the Latin languages (e.g.
> French, Spanish, Italian, Portuguese etc), fairly simply for German (e.g.
> any vowel with an umlaut is replaced by the unmodified vowel + 'e'), a
> little messier for the Scandinavian languages, even worse for Greek and
> Cyrillic, and almost impossible for the Eastern European languages with
> diacritics.
>
> What is the business purpose behind your need to do this, AAMOI?
>