
27 Feb
2008
27 Feb
'08
4:25 a.m.
On Wed, Feb 27, 2008 at 1:06 AM, Duncan Coutts
As a data point, Java and python use "always locale" as default if you don't specify an encoding when opening a text stream.
I think personally I'm coming round to the "always locale" point of view. We already have no cross-platform consistency for text files because of the lf vs cr/lf issue and we have no cross-implementation consistency.
I think following Java and Python in this matter is a good idea and leads to fewer surprises for developers. If you want files created on one machine to work on another you have to be explicit about encoding. -- Johan