[silva-dev] unicode error in custom content type
aaltepet at bethel.edu
Tue Sep 2 22:20:56 CEST 2003
> This should be resolved if the charset meta tag is set both for the page
> which shows the form and the page which shows the results.
Well, it looks like I removed that spot in silva's index_html that set
the charset http header. Opps! I had done some modifications to
index_html to get a few other custom types to work, and I must have
removed it, not understanding completely what it did. Silly me ;P
Thanks for setting me straight.
> What puzzles
> me is the following: the Python script 'index_html' in the Silva root
> should set all the appropriate headers for you. The fact that you have
> to manually set the encoding for a public view (we *are* talking about a
> public view here, right?) means either you bypass the index_html somehow
> (perhaps by calling some method on the object) or that you are using
> some old index_html. Can you check whether your index_html (in Silva
> root in the ZODB) contains some code to set the content-type header?
> >>Of course you do need to include the correct headers to make
> >>the browser display UTF-8 as well.
> >Is it sufficient to have:
> ><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
> >In the <head> section of the html document?
> Well, if the content-type header is set automatically from the
> index_html script that shouldn't be necessary. If you indeed somehow
> bypass the index_html, this would solve the problem.
More information about the silva-dev