Hello,
I run into a problem when I was displaying my data from mysql database.
Is there a bug in KID that prohibits it from reading some UTF8 values?
Is there a fix for it? How can I get rid of this error?
File "<string>", line 5, in _expose
File "/var/lib/python-support/python2.4/turbogears/controllers.py",
line 351, in <lambda>
mapping, fragment, args, kw)))
File "/var/lib/python-support/python2.4/turbogears/controllers.py",
line 391, in _execute_func
return _process_output(output, template, format, content_type,
mapping, fragment)
File "/var/lib/python-support/python2.4/turbogears/controllers.py",
line 82, in _process_output
fragment=fragment)
File "/var/lib/python-support/python2.4/turbogears/view/base.py",
line 131, in render
return engine.render(**kw)
File "/var/lib/python-support/python2.4/turbokid/kidsupport.py",
line 174, in render
return t.serialize(encoding=self.defaultencoding, output=format,
fragment=fragment)
File "/var/lib/python-support/python2.4/kid/__init__.py", line 236,
in serialize
return serializer.serialize(self, encoding, fragment)
File "/var/lib/python-support/python2.4/kid/serialization.py", line
51, in serialize
text = list(self.generate(stream, encoding, fragment))
File "/var/lib/python-support/python2.4/kid/serialization.py", line
329, in generate
for ev, item in self.apply_filters(stream):
File "/var/lib/python-support/python2.4/kid/pull.py", line 210, in _coalesce
for ev, item in stream:
File "/var/lib/python-support/python2.4/kid/filter.py", line 21, in
transform_filter
for ev, item in apply_matches(stream, template, templates, apply_func):
File "/var/lib/python-support/python2.4/kid/filter.py", line 31, in
apply_matches
item = stream.expand()
File "/var/lib/python-support/python2.4/kid/pull.py", line 99, in expand
for ev, item in self._iter:
File "/var/lib/python-support/python2.4/kid/pull.py", line 168, in _track
for p in stream:
File "/var/lib/python-support/python2.4/kid/pull.py", line 218, in _coalesce
text += to_unicode(value, encoding)
File "/var/lib/python-support/python2.4/kid/pull.py", line 194, in to_unicode
return unicode(value, encoding)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xbf in position
261: unexpected code byte
Thanks,
Lucas
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---