A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-April/052565.html below:

[Python-Dev] Unicode byte order mark decoding

[Python-Dev] Unicode byte order mark decoding [Python-Dev] Unicode byte order mark decodingNicholas Bastin nbastin at opnet.com
Thu Apr 7 16:19:37 CEST 2005
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

More information about the Python-Dev mailing list

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