[ZPT] Makeing PageTemplate's edit pages Unicode aware

Stuart Bishop stuart.b at commonground.com.au
Wed Mar 24 20:27:47 EST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Currently, if you enter non-ascii text into the title or contents
fields on a PageTemplate's edit page, the data ends up stored as
an encoded string (using management_page_charset, if it is set. Unknown
encoding if it is not).

This should be easy to fix using the foo:charset:ustring notation
to have Zope convert the encoded strings to Unicode. However, the
file upload  feature is more problematic. Should the file upload
try converting the file to Unicode from UTF-8 and raise an exception
if this is not possible? I personally feel this is preferable to
ending up with arbitrarily enncoded document source, with no idea
of the character set used.

- --  
Stuart Bishop <stuart at stuartbishop.net>
http://www.stuartbishop.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQFAYjWZAfqZj7rGN0oRAlECAJ9QZ9jP5tEvN50kvFo7OLVLwdjsLgCgibGa
Bkti8PuX18OwLFdWQVoPozE=
=kZkN
-----END PGP SIGNATURE-----




More information about the ZPT mailing list