Re: UTF-8 in config.py
will <[email protected]> Thu, 22 May 2008 18:19:55 -0400
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
will wrote: > Seb wrote: >> 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@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" > > What's in the error log? Now that I think about it, I bet I know what the problem is. Try adding the following line to the top of your config.py file: # -*- coding: utf-8 -*- That tells Python that the config.py file is also in utf-8. I know that works locally. Let me know if that works for you. /will ------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/pyblosxom-users