UTF-16 encoding line breaks?
Martin v. Löwis
martin at v.loewis.de
Wed Jun 11 14:33:43 EDT 2003
"Richard" <richardd at hmgcc.gov.uk> writes:
> I have a script which uses the .encode('UTF-16') function to encode a string
> into UTF-16. However I am having difficulties in putting line breaks into
> that string. \n is what I normally use but does not appear to become valid
> UTF-16 once encoded.
Can you demonstrate that? It works fine for me.
Regards,
Martin
More information about the Python-list
mailing list