On Tue, Jan 09, 2007 at 07:46:47PM +0100, Georg Baum wrote: > José or any other python expert, I need your help. The attached patch is > the lyx2lyx part of the "getting rid of InsetLaTeXAccent" patch. > convert_accent works well, but revert_accent does not. I put the error > messages in the file. Can anybody tell me why > > document.body[i] = unicodedata.normalize("NFKD", document.body[i]) > > does not work?
result = unicodedata.normalize("NFKD", unicode(utf8encodedstring, 'utf8')) works fine here. -- Enrico