-- ZoomQuiet [2004-12-22 09:28:31]
Contents
闲情偶寄闲情偶寄另类-奇文
ZenOfProgramming -- 编程之禅
The Tao Of Programming
- —— 编程之道 Translated By Geoffrey James [小赵]翻译整理 说明:
本文是
--> -->UnicodeEncodeError
'ascii' codec can't encode characters in position 6-9: ordinal not in range(128)
If you want to report a bug, please save this page and attach it to your bug report.
Traceback
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/usr/local/lib/python2.5/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_modpython.Request object at 0x4dcc620c>)
- 1309 self.page.send_page()
- 1310 else:
- 1311 handler(self.page.page_name, self)
- 1312
- 1313 # every action that didn't use to raise MoinMoinFinish must call this now:
- handler = <function do_show at 0x4a378844>
- self = <MoinMoin.request.request_modpython.Request object at 0x4dcc620c>
- self.page = <MoinMoin.Page.Page object at 0x4dcc6eac>
- self.page.page_name = u'TaoOfProgramming'
/usr/local/lib/python2.5/site-packages/MoinMoin/action/__init__.py in do_show (pagename=u'TaoOfProgramming', request=<MoinMoin.request.request_modpython.Request object at 0x4dcc620c>, content_only=0, count_hit=1, cacheable=1, print_mode=0)
- 251 count_hit=count_hit,
- 252 print_mode=print_mode,
- 253 content_only=content_only,
- 254 )
- 255
- content_only = 0
/usr/local/lib/python2.5/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object at 0x4c83358c>, **keywords={'content_only': 0, 'count_hit': 1, 'print_mode': 0})
- 1199 format_args=pi['formatargs'],
- 1200 do_cache=do_cache,
- 1201 start_line=pi['lines'])
- 1202
- 1203 # check for pending footnotes
- start_line undefined
- pi = {'acl': <MoinMoin.security.AccessControlList instance at 0x4cb66c0c>, 'format': 'wiki', 'formatargs': '', 'language': 'en', 'lines': 1}
/usr/local/lib/python2.5/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page object at 0x4c83358c>, request=<MoinMoin.request.request_modpython.Request object at 0x4dcc620c>, body=u'\n-- ZoomQuiet [<<DateTime(2004-12-22T09:28:31Z)>...and left a trace ==\n\u7ecf\u5178\uff0c\u540c\u65f6\u6709\u4e9b\u5c1a\u672a\u770b\u660e\u767d\n\u503c\u5f97\u5e38\u5e38\u8bfb\u8bfb\uff0c\u4f53\u609f\u7f16\u7a0b\u4e4b\u9053\n', format='wiki', format_args='', do_cache=1, **kw={'start_line': 1})
- 1287 try:
- 1288 code = self.loadCache(request)
- 1289 self.execute(request, parser, code)
- 1290 except Exception, e:
- 1291 if not is_cache_exception(e):
- self = <MoinMoin.Page.Page object at 0x4c83358c>
- self.execute = <bound method Page.execute of <MoinMoin.Page.Page object at 0x4c83358c>>
- request = <MoinMoin.request.request_modpython.Request object at 0x4dcc620c>
- parser = <MoinMoin.parser.text_moin_wiki.Parser instance at 0x4cb6666c>
- code = <code object <module> at 0x4d1e70f8, file "TaoOfProgramming", line 2>
/usr/local/lib/python2.5/site-packages/MoinMoin/Page.py in execute (self=<MoinMoin.Page.Page object at 0x4c83358c>, request=<MoinMoin.request.request_modpython.Request object at 0x4dcc620c>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x4cb6666c>, code=<code object <module> at 0x4d1e70f8, file "TaoOfProgramming", line 2>)
- 1318 __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy')
- 1319 try:
- 1320 exec code
- 1321 except "CacheNeedsUpdate": # convert the exception
- 1322 raise Exception("CacheNeedsUpdate")
- code = <code object <module> at 0x4d1e70f8, file "TaoOfProgramming", line 2>
/TaoOfProgramming in
() /usr/local/lib/python2.5/site-packages/MoinMoin/formatter/__init__.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance at 0x4cb6668c>, macro_obj=<MoinMoin.macro.Macro instance at 0x4cb666cc>, name=u'\u7f16\u7a0b\u4e4b\u9053', args=None, markup=u'<<\u7f16\u7a0b\u4e4b\u9053>>')
- 308 # call the macro
- 309 try:
- 310 return macro_obj.execute(name, args)
- 311 except ImportError, err:
- 312 errmsg = unicode(err)
- macro_obj = <MoinMoin.macro.Macro instance at 0x4cb666cc>
- macro_obj.execute = <bound method Macro.execute of <MoinMoin.macro.Macro instance at 0x4cb666cc>>
- name = u'\u7f16\u7a0b\u4e4b\u9053'
- args = None
/usr/local/lib/python2.5/site-packages/MoinMoin/macro/__init__.py in execute (self=<MoinMoin.macro.Macro instance at 0x4cb666cc>, macro_name=u'\u7f16\u7a0b\u4e4b\u9053', args=None)
- 119 except wikiutil.PluginMissingError:
- 120 try:
- 121 call = getattr(self, 'macro_%s' % macro_name)
- 122 execute = lambda _self, _args: _self._wrap(call, _args)
- 123 except AttributeError:
- call undefined
- builtin getattr = <built-in function getattr>
- self = <MoinMoin.macro.Macro instance at 0x4cb666cc>
- macro_name = u'\u7f16\u7a0b\u4e4b\u9053'
UnicodeEncodeError
'ascii' codec can't encode characters in position 6-9: ordinal not in range(128)
- args = ('ascii', u'macro_\u7f16\u7a0b\u4e4b\u9053', 6, 10, 'ordinal not in range(128)')
- encoding = 'ascii'
- end = 10
- message = ''
- object = u'macro_\u7f16\u7a0b\u4e4b\u9053'
- reason = 'ordinal not in range(128)'
- start = 6
System Details
- Date: Tue, 09 Feb 2010 02:31:06 +0000
- Platform: FreeBSD host.woodpecker.org.cn 7.1-RELEASE-p4 FreeBSD 7.1-RELEASE-p4 #1: Fri Mar 27 08:41:14 CST 2009 delphij@host.woodpecker.org.cn:/usr/obj/usr/src/sys/WOODPECKER i386
- Python: Python 2.5.4 (/usr/local/bin/python)
- MoinMoin: Release 1.8.4 (release)