[Zope-Checkins] CVS: Zope/doc - RESTRUCTUREDSTEXT.txt:1.1.2.3
Andreas Jung
andreas@andreas-jung.com
Thu, 30 Jan 2003 12:52:49 -0500
Update of /cvs-repository/Zope/doc
In directory cvs.zope.org:/tmp/cvs-serv3209/doc
Modified Files:
Tag: ajung-restructuredtext-integration-branch
RESTRUCTUREDSTEXT.txt
Log Message:
using Python's default encoding
=== Zope/doc/RESTRUCTUREDSTEXT.txt 1.1.2.2 => 1.1.2.3 ===
--- Zope/doc/RESTRUCTUREDSTEXT.txt:1.1.2.2 Sun Nov 17 02:40:51 2002
+++ Zope/doc/RESTRUCTUREDSTEXT.txt Thu Jan 30 12:52:16 2003
@@ -30,7 +30,21 @@
rendered_html = HTML(rest_txt)
...
-This version of Zope also includes the ZReST product written by
-Richard Jones. ZRest is a standalone Zope product to handle
-reStructuredText documents.
+Character set issues:
+
+ reST processes the reST document internally using unicode. A reST
+ document is converted using Pythons default encoding to unicode and
+ converted back from unicode to the default encoding on the output side.
+ This means you must ensure that Python default encoding is properly.
+
+ You can customize the default encoding by creating a file sitecustomize.py
+ somewhere in yout PYTHONPATH:
+
+ import sys
+ sys.setdefaultencoding("iso-8859-1")
+
+
+
+This version of Zope also includes the ZReST product written by Richard Jones.
+ZRest is a standalone Zope product to handle reStructuredText documents.