Unicode char replace

"Martin v. Löwis" martin at v.loewis.de
Tue Feb 12 16:02:14 EST 2008


> string = u'Macworld » Jobs 1 - Twitter 0'
> 
> 
> None of them gives me 'Macworld » Jobs 1 - Twitter 0'
> 
> Any idea?

So I assume you *want* it to produce ». May I ask why?
I really recommend that you use » instead.

In any case, you need to define your own error handler, such as
the one in

http://herlock.com/ob/pythoncb/0596007973/chp-1-sect-23.html

HTH,
Martin



More information about the Python-list mailing list