[Moin-devel] [ moin-Bugs-970816 ] unicode undefined
SourceForge.net
noreply at sourceforge.net
Wed Jun 16 17:12:26 EDT 2004
Bugs item #970816, was opened at 2004-06-11 09:56
Message generated for change (Comment added) made by dolmengi
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 undefined
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: dolmengi (dolmengi)
Date: 2004-06-17 09:11
Message:
Logged In: YES
user_id=1060718
I found reason that "TitleIndex" page out of run.
Because I setted config.charset is uncorrect(euc-kr) as like
old.
I set config 'utf-8' , and "TitleIndex" run.
----------------------------------------------------------------------
Comment By: Thomas Waldmann (thomaswaldmann)
Date: 2004-06-16 22: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
More information about the Moin-devel
mailing list