Message80221
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'
-------------- |
|
Date |
User |
Action |
Args |
2009-01-19 23:24:35 | vstinner | set | recipients:
+ vstinner |
2009-01-19 23:24:35 | vstinner | set | messageid: <1232407475.88.0.821271875363.issue5006@psf.upfronthosting.co.za> |
2009-01-19 23:24:35 | vstinner | link | issue5006 messages |
2009-01-19 23:24:34 | vstinner | create | |
|