hard_decoding

T

Tamas Hegedus

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' => Laszlo

Thanks,
Tamas
 
P

Peter Maas

Tamas said:
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
u'hello'

The inconvenient part is to generate cmap. I suggest you write a
helper class genmap for this:
Laszlo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,219
Messages
2,571,118
Members
47,731
Latest member
unutbu

Latest Threads

Top