in short:
when dabo starts, it choose which default encoding to use, which is
wrong (IMHO) on windows.
i'd like to use UTF-8 everywhere, (and maybe to encode/decode only when
import/export to/from legacy system when necessary).
This is what happens:
dabo/dLocale.py is deciding to use non-unicode code page;
it's doing so by using getpreferredencoding().
my question is: whether it's correct to call getpreferredencoding() for
system encoding detection?
here's what i found in python/lib/locale.py:
if sys.platform.startswith("win"):
# On Win32, this will return the ANSI code page
def getpreferredencoding(do_setlocale = True):
which means that on windows i'll NEVER get to use unicode by default.
i can't think of any modern project that's not using unicode...
so - is it right to use getpreferredencoding() ?
maybe just set a unicode default and let the programmer set in a
settings file?
maybe guess the settings using another way (e.g. env variable) ?
thanks
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]