Andrew> for another variation see that "Unicode Hammer" at
Andrew> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/251871
Andrew> It doesn't do the registry hooks that Skip does, and I see I
Andrew> need to learn more about the functions in the codes module.
Note that l
Coming in a few days late to this one ...
Skip
> See if my latscii codec works for you:
>
> http://www.musi-cal.com/~skip/python/latscii.py
for another variation see that "Unicode Hammer" at
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/251871
It doesn't do the registry hooks th
Tamas> Do you have a convinient, easy way to remove special charachters
Tamas> from u'strings'?
Tamas> Replacing:
Tamas> ÀÁÂÃÄÅ => A
... etc ...
See if my latscii codec works for you:
http://www.musi-cal.com/~skip/python/latscii.py
Skip
--
http://mail.python.org/m
On Wed, Feb 09, 2005 at 05:22:12PM -0700, Tamas Hegedus wrote:
> Hi!
>
> Do you have a convinient, easy way to remove special charachters from
> u'strings'?
>
> Replacing:
> ÀÁÂÃÄÅ=> A
> èéêë => e
> etc.
> 'L0xe1szl0xf3' => Laszlo
> or something like that:
> 'L\xc3\xa1szl\xc3\xb3' => La
Tamas Hegedus schrieb:
Do you have a convinient, easy way to remove special charachters from
u'strings'?
Replacing:
ÀÁÂÃÄÅ => A
èéêë=> e
etc.
'L0xe1szl0xf3' => Laszlo
or something like that:
'L\xc3\xa1szl\xc3\xb3' => Laszlo
>>> ord(u'ë')
235
>>> ord(u'e')
101
>>> cmap = {235:101}
>>> u'he