From 7f04ed88f4522f7788017f9fb20c7b1d5dff3a1c Mon Sep 17 00:00:00 2001 From: Mika Bostrom Date: Tue, 26 Jan 2010 08:01:46 +0200 Subject: [PATCH] Use proper encoding name When system is unicode, the second item in locale.getdefaultlocale() is "UTF8", not "utf-8". --- pyfpdb/Charset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfpdb/Charset.py b/pyfpdb/Charset.py index 86d33418..d49b6219 100644 --- a/pyfpdb/Charset.py +++ b/pyfpdb/Charset.py @@ -29,7 +29,7 @@ encoder_to_sys = codecs.lookup(Configuration.LOCALE_ENCODING) # I'm saving a few cycles with this one not_needed = False -if Configuration.LOCALE_ENCODING == 'utf-8': +if Configuration.LOCALE_ENCODING == 'UTF8': not_needed = True def to_utf8(s):