[silva-dev] unicode error in custom content type
Jan-Wijbrand Kolman
jw at infrae.com
Tue Sep 2 16:35:58 CEST 2003
Andrew,
Just to be sure: what Silva version are you using?
regards
jw
Andrew Altepeter wrote:
> Hi All!
>
> I have a custom content type that I don't think fully supports unicode.
> When I save data in the edit tab, I convert I do the following:
> self._data[d] = request[d].encode('UTF8')
>
> However, if that data has some non-ascii characters in it (a special
> apostrophe, in this case), when I go to the public view it see this
> error:
>
> Error Type: UnicodeError
> Error Value: ASCII decoding error: ordinal not in range(128)
>
> The code in the public view template which gives the error (I think) is
> this:
>
> <span tal:omit-tag="" tal:repeat="job newjobs">
> <a tal:attributes="name job/id"></a>
> <h4 tal:content="job/getPosition">Position Title</h4>
> <p tal:content="job/getSalary">Salary</p>
> <p align="justify" tal:content="job/getResponsibilities">Job
> Description</p>
> </span>
>
> Any ideas?
--
Jan-Wijbrand Kolman
jw at infrae.com
More information about the silva-dev
mailing list