Re: choosing a default text-encoding in Python programs (was: To unicode or not to unicode)

2009-02-22 Thread John Machin
On Feb 23, 11:46 am, Joshua Judson Rosen wrote: > Denis Kasak writes: > > > > > Python "assumes" ASCII and if the decodes/encoded text doesn't > > > > fit that encoding it refuses to guess. > > > > Which is reasonable given that Python is programming language where it's > > > better to have more

Re: choosing a default text-encoding in Python programs

2009-02-22 Thread Ben Finney
Joshua Judson Rosen writes: > If you have to make an assumption, I'd really think that it'd be > better to use whatever the host OS's default is, if the host OS has > such a thing--using an assumption of ISO 8859-1 works only in select > regions on unix systems, and may fail even in those select