Used replace parameter in Windows for encodeing problem with strange characters.
svn: r14206
This commit is contained in:
parent
2f2fdeded8
commit
beeac2153f
@ -280,7 +280,7 @@ if platform.system() in WINDOWS:
|
|||||||
#so no need to specify it
|
#so no need to specify it
|
||||||
conv_utf8_tosrtkey_ongtk = lambda x: locale.strxfrm(unicode(x).encode(
|
conv_utf8_tosrtkey_ongtk = lambda x: locale.strxfrm(unicode(x).encode(
|
||||||
codeset))
|
codeset))
|
||||||
conv_unicode_tosrtkey_ongtk = lambda x: locale.strxfrm(x.encode(codeset))
|
conv_unicode_tosrtkey_ongtk = lambda x: locale.strxfrm(x.encode(codeset),'replace')
|
||||||
else:
|
else:
|
||||||
# on unix C functions need to recieve utf-8. Default conversion would
|
# on unix C functions need to recieve utf-8. Default conversion would
|
||||||
# use ascii, so it is needed to be explicit about the resulting encoding
|
# use ascii, so it is needed to be explicit about the resulting encoding
|
||||||
|
Loading…
x
Reference in New Issue
Block a user