Convert on uppercase unaccentent unicode character

John Machin sjmachin at lexicon.net
Wed Oct 3 16:05:51 EDT 2007


On Oct 4, 4:35 am, JBJ <Jean-Bernard.jacquet-at-tele-deux-
point... at invalid.org> wrote:
> Hi,
> I'am very newbie in Python.
> For the moment I'am trying to convert an unicode character to his uppercase
> unaccented character.
> By example with locale fr_FR:
> a,A,à,À should return A
> o,O,ô,Ô should return O
> ½,¼ should return ¼
> i,I,î,Î should return I
>
> Have you some suggestions ?
>
> Thank.

Google in this newsgroup for a thread started by "bussiere" on or
about 2006-03-25. The code snippet provided by Fredrik Lundh should
help you.





More information about the Python-list mailing list