This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2009-01-19.23:24:34
SpamBayes Score 0.016544875
Marked as misclassified No
Message-id <1232407475.88.0.821271875363.issue5006@psf.upfronthosting.co.za>
In-reply-to
Content
Copy/paste of message79330 from the issue #4862:
--------------
>>> f = open('utf16.txt', 'w', encoding='utf-16')
>>> f.write('abc')
3
>>> f.close()

>>> f = open('utf16.txt', 'a', encoding='utf-16')
>>> f.write('def')
3
>>> f.close()
>>> open('utf16.txt', 'r', encoding='utf-16').read()
'abc\ufeffdef'
--------------
History
Date User Action Args
2009-01-19 23:24:35vstinnersetrecipients: + vstinner
2009-01-19 23:24:35vstinnersetmessageid: <1232407475.88.0.821271875363.issue5006@psf.upfronthosting.co.za>
2009-01-19 23:24:35vstinnerlinkissue5006 messages
2009-01-19 23:24:34vstinnercreate