[ moin-Bugs-970816 ] unicode undifined
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.web.wiki.moin.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #970816, was opened at 2004-06-11 02:56
Message generated for change (Comment added) made by thomaswaldmann
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108482&aid=970816&group_id=8482
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: dolmengi (dolmengi)
Assigned to: Nobody/Anonymous (nobody)
Summary: unicode undifined
Initial Comment:
i use 1.2.2 and Korean.
i catched an error at Page Name "TitleIndex"
method unicode undefined.
------------------------------------------
228 if wikiutil.isUnicodeName(letter):
229 try:
230 letter =
wikiutil.getUnicodeIndexGroup(unicode(name,
config.charset))
231 if letter: letter = letter.encode
(config.charset)
232 except UnicodeError:
letter = '\xb1', wikiutil.getUnicodeIndexGroup =
<function getUnicodeIndexGroup>, unicode undefined,
name = '\xb1\xdb\xc0\xdf\xbe\xb2\xb4\xc2\xb9\xfd',
LookupError: unknown encoding
__doc__ = 'Base class for lookup errors.'
__getitem__ = <bound method
LookupError.__getitem__ of <exceptions.LookupError
instance at 0x82d124c>>
__init__ = <bound method LookupError.__init__ of
<exceptions.LookupError instance at 0x82d124c>>
__module__ = 'exceptions'
__str__ = <bound method LookupError.__str__ of
<exceptions.LookupError instance at 0x82d124c>>
args = ('unknown encoding',)
----------------------------------------------------------------------
>Comment By: Thomas Waldmann (thomaswaldmann)
Date: 2004-06-16 15:43
Message:
Logged In: YES
user_id=100649
it says "unknown encoding" - so what is config.charset set to?
Standard for moin 1.2.x is "iso8859-1". There is some basic
support for "utf-8", too.
But do not expect too much support for unicode, moin < 1.3
is mostly unaware of unicode, it just processes utf-8 as a
byte sequence - as it does with other charsets, too.
moin >= 1.3 will (when it is released) really support
unicode - decoding utf-8 (and other charsets) to ucs-2 or
ucs-4 internally (depending on your python compile settings)
and encoding to utf-8 (and others) again when outputting.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108482&aid=970816&group_id=8482
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND