On Apr 7, 2005, at 5:07 AM, M.-A. Lemburg wrote: >> The current implementation of the utf-16 codecs makes for some >> irritating gymnastics to write the BOM into the file before reading it >> if it contains no BOM, which seems quite like a bug in the codec. > > The codec writes a BOM in the first call to .write() - it > doesn't write a BOM before reading from the file. Yes, see, I read a *lot* of UTF-16 that comes from other sources. It's not a matter of writing with python and reading with python. -- Nick
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4