UnicodeDecodeError
'ascii' codec can't decode byte 0xa0 in position 66: 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/lib/python2.3/site-packages/MoinMoin/request.py
in run
(self=<MoinMoin.request.RequestModPy object>)
- 1149 from MoinMoin.wikiaction import getHandler
- 1150 handler = getHandler(self, action)
- 1151 handler(self.page.page_name, self)
- 1152
- 1153 # generate page footer (actions that do not want this footer use
- handler
= <function execute>
- self
= <MoinMoin.request.RequestModPy object>
- self.page
= <MoinMoin.Page.Page instance>
- self.page.page_name
= u'KompletniAnalyzaIt'
/usr/lib/python2.3/site-packages/MoinMoin/action/AttachFile.py
in execute
(pagename=u'KompletniAnalyzaIt', request=<MoinMoin.request.RequestModPy object>)
- 508 elif request.form['do'][0] == 'unzip':
- 509 if request.user.may.delete(pagename) and request.user.may.read(pagename) and request.user.may.write(pagename):
- 510 unzip_file(pagename, request)
- 511 else:
- 512 msg = _('You are not allowed to unzip attachments of this page.')
- global
unzip_file
= <function unzip_file>
- pagename
= u'KompletniAnalyzaIt'
- request
= <MoinMoin.request.RequestModPy object>
/usr/lib/python2.3/site-packages/MoinMoin/action/AttachFile.py
in unzip_file
(pagename=u'KompletniAnalyzaIt', request=<MoinMoin.request.RequestModPy object>)
- 872 zi = zf.getinfo(origname)
- 873 if zi.file_size < single_file_size:
- 874 new_file = getFilename(request, pagename, finalname)
- 875 if not os.path.exists(new_file):
- 876 outfile = open(new_file, 'wb')
- new_file undefined
- global
getFilename
= <function getFilename>
- request
= <MoinMoin.request.RequestModPy object>
- pagename
= u'KompletniAnalyzaIt'
- finalname
= 'obr\xa0zky8.png'
/usr/lib/python2.3/site-packages/MoinMoin/action/AttachFile.py
in getFilename
(request=<MoinMoin.request.RequestModPy object>, pagename=u'KompletniAnalyzaIt', filename='obr\xa0zky8.png')
- 139 @return: complete path/filename of attached file
- 140 """
- 141 return os.path.join(getAttachDir(request, pagename), filename).encode(config.charset)
- 142
- 143 def info(pagename, request):
- global
os
= <module 'os' from '/usr/lib/python2.3/os.pyc'>
- os.path
= <module 'posixpath' from '/usr/lib/python2.3/posixpath.pyc'>
- os.path.join
= <function join>
- global
getAttachDir
= <function getAttachDir>
- request
= <MoinMoin.request.RequestModPy object>
- pagename
= u'KompletniAnalyzaIt'
- filename
= 'obr\xa0zky8.png'
- ).encode
= <built-in method encode of str object>
- global
config
= <module 'MoinMoin.config' from '/usr/lib/python2.3/site-packages/MoinMoin/config.pyc'>
- config.charset
= 'utf-8'
UnicodeDecodeError
'ascii' codec can't decode byte 0xa0 in position 66: ordinal not in range(128)
- args = ('ascii', '/var/www/wiki/itinfo/data/pages/KompletniAnalyzaIt/attachments/obr\xa0zky8.png', 66, 67, 'ordinal not in range(128)')
- encoding = 'ascii'
- end = 67
- object = '/var/www/wiki/itinfo/data/pages/KompletniAnalyzaIt/attachments/obr\xa0zky8.png'
- reason = 'ordinal not in range(128)'
- start = 66
System Details
- Date: Thu, 07 Dec 2006 12:00:28 +0000
- Platform: Linux hvslins0001 2.6.8-2-686 #1 Tue Aug 16 13:22:48 UTC 2005 i686
- Python: Python 2.3.5 (/usr/bin/python)
- MoinMoin: Release 1.5.6 (release)