unicode .replace not working - why?

Kurt Peters nospampeterskurt at msn.com
Sun Oct 12 06:24:24 CEST 2008


I had done that about 21 revisions ago.  Nevertheless, why would you think 
that would work, when the code as shown doesn't?
kurt


"Dennis Lee Bieber" <wlfraed at ix.netcom.com> wrote in message 
news:msGdnVOGt6i2kmzVnZ2dnUVZ_rDinZ2d at earthlink.com...
> On Sat, 11 Oct 2008 15:05:43 -0500, Kurt Peters
> <nospampetersk at bigfoot.com> declaimed the following in comp.lang.python:
>
>
>> textu.replace(unichr(167),'\n')
>
> Might I suggest:
>
> textu = textu.replace(fn, "\n") #you already created fn as the character
> -- 
> Wulfraed Dennis Lee Bieber KD6MOG
> wlfraed at ix.netcom.com wulfraed at bestiaria.com
> HTTP://wlfraed.home.netcom.com/
> (Bestiaria Support Staff: web-asst at bestiaria.com)
> HTTP://www.bestiaria.com/ 





More information about the Python-list mailing list