[Python-Dev] open(): set the default encoding to 'utf-8' in Python 3.3?
g.brandl at gmx.net
Tue Jun 28 20:18:00 CEST 2011
On 28.06.2011 19:06, Terry Reedy wrote:
> On 6/28/2011 10:46 AM, Paul Moore wrote:
>> I use Windows, and come from the UK, so 99% of my text files are
>> ASCII. So the majority of my code will be unaffected. But in the
>> occasional situation where I use a £ sign, I'll get encoding errors,
> I do not understand this. With utf-8 you would never get a string
> encoding error.
Yes, but you'll get plenty of *decoding* errors.
More information about the Python-Dev