Issue8

Title pyblosxom doesn't seem to manage utf-8 with french language - ID: 2781177
Milestone
Priority bug Status chatting
Superseder Nosy List willg
Assigned To Keywords

Created on 2011-01-08.16:59:27 by willg, last changed by willg.

Messages
msg209 (view) Author: willg Date: 2011-06-14.02:12:31
There isn't enough data here for me to reproduce the problem, so I'm bumping it
out of the 1.5 milestone.

If anyone can figure out whether this is still a problem with PyBlosxom, that'd
be really helpful.
msg15 (view) Author: willg Date: 2011-01-08.16:59:27
Hi, I'm using the following configuration :
py["blog_language"] = "fr"
py["blog_encoding"] = "utf-8"
py["locale"] = "fr_FR.UTF-8"

When executing pyblosxom :
# pyblosxom-cmd staticrender
pyblosxom-cmd version 1.5 dev
Trying to import the config module....
Performing static rendering.
rendering 2 entries.
rendering 1 category indexes.
rendering 4 date indexes.
rendering 0 arbitrary urls.
(before) building 7 files.
building 7 files.
rendering '/firstpost.html' ...
rendering '/maparticipation.html' ...
Traceback (most recent call last):
File "/usr/bin/pyblosxom-cmd", line 5, in ?
pkg_resources.run_script('pyblosxom==1.5', 'pyblosxom-cmd')
File "/usr/lib/python2.4/site-packages/setuptools-0.6c7-
py2.4.egg/pkg_resources.py", line 448, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.4/site-packages/setuptools-0.6c7-
py2.4.egg/pkg_resources.py", line 1166, in run_script
execfile(script_filename, namespace, namespace)
File "/usr/lib/python2.4/site-packages/pyblosxom-1.5-py2.4.egg/EGG-
INFO/scripts/pyblosxom-cmd", line 25, in ?
sys.exit(command_line_handler("pyblosxom-cmd", sys.argv))
File "/usr/lib/python2.4/site-packages/pyblosxom-1.5-
py2.4.egg/Pyblosxom/commandline.py", line 392, in command_line_handler
return f(command, argv)
File "/usr/lib/python2.4/site-packages/pyblosxom-1.5-
py2.4.egg/Pyblosxom/commandline.py", line 300, in run_static_renderer
return p.runStaticRenderer(options.incremental)
File "/usr/lib/python2.4/site-packages/pyblosxom-1.5-
py2.4.egg/Pyblosxom/pyblosxom.py", line 426, in runStaticRenderer
tools.render_url_statically(config, url, q)
File "/usr/lib/python2.4/site-packages/pyblosxom-1.5-
py2.4.egg/Pyblosxom/tools.py", line 929, in render_url_statically
response = render_url(cdict, url, q)
File "/usr/lib/python2.4/site-packages/pyblosxom-1.5-
py2.4.egg/Pyblosxom/tools.py", line 982, in render_url
p.run(static=True)
File "/usr/lib/python2.4/site-packages/pyblosxom-1.5-
py2.4.egg/Pyblosxom/pyblosxom.py", line 201, in run
blosxom_handler(self._request)
File "/usr/lib/python2.4/site-packages/pyblosxom-1.5-
py2.4.egg/Pyblosxom/pyblosxom.py", line 1046, in blosxom_handler
renderer.render()
File "/usr/lib/python2.4/site-packages/pyblosxom-1.5-
py2.4.egg/Pyblosxom/renderers/blosxom.py", line 315, in render
self.write("".join(self.renderContent(self._content)))
File "/usr/lib/python2.4/site-packages/pyblosxom-1.5-
py2.4.egg/Pyblosxom/renderers/blosxom.py", line 262, in renderContent
outputbuffer.append(self.renderTemplate(vars, "story", override=1))
File "/usr/lib/python2.4/site-packages/pyblosxom-1.5-
py2.4.egg/Pyblosxom/renderers/blosxom.py", line 358, in renderTemplate
finaltext = tools.parse(self._request, entry, template)
File "/usr/lib/python2.4/site-packages/pyblosxom-1.5-
py2.4.egg/Pyblosxom/tools.py", line 478, in parse
return _VAR_REGEXP.sub(replacer.replace, template)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 60: ordinal 
not in range(128)

It seems to be a utf-8 issue.

Best regards,
Carl Chenet

----

SF url: http://sourceforge.net/tracker/?
func=detail&aid=2781177&group_id=67445&atid=517918
Submitter: Nobody/Anonymous ( nobody ) - 2009-04-25 15:11:13 UTC
History
Date User Action Args
2011-06-14 02:12:31willgsetstatus: unread -> chatting
messages: + msg209
milestone: 1.5 ->
2011-01-08 16:59:27willgcreate