#35 — utf8 unable to decode - error
| State | Postponed |
|---|---|
| Release: | 0.9.2 |
| Area | Process |
| Issue type | Patch |
| Severity | Important |
| Submitted by | Gareth Bult |
| Submitted on | 26 Nov 2007 |
| Responsible | Gareth Bult |
| Target release: | 0.9.2 |
Last modified on
20 Jul 2008
by
Gareth Bult
This appears to be a problem with Plone's uncode handling. My for for now is to edit;
Products/Archetypes/Field.py
And in the decode routine, insert a try/except around the uncode line.
try:
value = unicode(value, encoding)
except:
pass
If anyone else has a better solution, I'm all ears. I'm guessing this is down to a feed not properly specifying it's character set, and the code defaulting to utf8 when the set should actually be something else ...
Products/Archetypes/Field.py
And in the decode routine, insert a try/except around the uncode line.
try:
value = unicode(value, encoding)
except:
pass
If anyone else has a better solution, I'm all ears. I'm guessing this is down to a feed not properly specifying it's character set, and the code defaulting to utf8 when the set should actually be something else ...
Added by
root
on
06 Jul 2008 22:12
Issue state:
unconfirmed → open
This appears to fix the problem for now .. I notice the same error has been reported a number of times on other packages.