Feb. 9, 2012
1:16 p.m.
As And pointed out, this is already the behaviour of the "mbcs" codec under Windows. "locale" would be the moral (*) equivalent of that under Unix.
On Windows, the ANSI code page codec will be accessible using 3 different names: "locale", "mbcs" and the real encoding name (sys.getfilesystemencoding())! Victor