Seb | 22 May 23:47
Picon
Gravatar

UTF-8 in config.py

Hi,

I need to serve pages in UTF-8, and have set up a head.html in my
flavor that starts as follows:

---<---------------cut here---------------start-------------->---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

  <head>
    <title>$blog_title_with_path $pi_da $pi_mo $pi_yr</title>
    <link rel="author" href="http://my/url" />
    <meta http-equiv="Content-Type"
    	  content="application/xhtml+xml; charset=utf-8" />
---<---------------cut here---------------end---------------->---

This allows for serving UTF-8 characters in stories and in any files of
the flavor.  However, if any of these characters are used in
/etc/pyblosxom/config.py, then the engine fails and the following error
is displayed:

---<---------------cut here---------------start-------------->---
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster <at> localhost and inform them of the time the error
occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
---<---------------cut here---------------end---------------->---

For instance, trying to set:

py['blog_description'] = "Canción"

Any ideas on how to get around this?  Thanks.

--

-- 
Seb

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
pyblosxom-users mailing list
pyblosxom-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyblosxom-users

Gmane