[silva-dev] unicode error in custom content type
Andrew Altepeter
aaltepet at bethel.edu
Tue Sep 2 16:40:11 CEST 2003
On Tue, 2003-09-02 at 09:35, Jan-Wijbrand Kolman wrote:
> Andrew,
>
>
> Just to be sure: what Silva version are you using?
I'm using v 0.9.2
>
> 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?
More information about the silva-dev
mailing list