Parent Directory
|
Revision Log
|
Patch
revision 2478 by bh, Fri Dec 17 18:48:49 2004 UTC | revision 2525 by bernhard, Thu Jan 20 10:00:34 2005 UTC | |
---|---|---|
# | Line 169 def unicodeToLocale(unicodeStr): | Line 169 def unicodeToLocale(unicodeStr): |
169 | # that's not direcly usable (it's missing a "cp" at the beginning). | # that's not direcly usable (it's missing a "cp" at the beginning). |
170 | # getdefaultlocale does return a usable encoding name so we use that | # getdefaultlocale does return a usable encoding name so we use that |
171 | # instead. | # instead. |
172 | return unicodeStr.encode(getdefaultlocale()[1]) | locale=getdefaultlocale()[1] |
173 | if locale is None: | |
174 | locale = 'iso-8859-15' | |
175 | return unicodeStr.encode(locale) |
|
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |