David Hopwood wrote: > I don't know about vi, but notepad will open and save files that are not in > the system ("ANSI") encoding just fine. On opening it checks for a BOM and > auto-detects UTF-8 and UTF-16; on saving it will write a BOM if you choose > "Unicode" (UTF-16LE), "Unicode big-endian" (UTF-16BE), or UTF-8 in the > Encoding drop-down box.
... and it also helpfully prompts you to select a Unicode encoding, if you forget and the file contains characters that are not representable in the ANSI encoding. > This is exactly the behaviour that most users would expect of a well-behaved > Unicode-aware app. It should be as easy as possible to match this behaviour > in a Python program. -- David Hopwood <[EMAIL PROTECTED]> _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com