Non-ASCII-form-input -> HTML-entities?
I would like to have users being able to enter german vowels ä, ö, ü and other non-ASCII-characters for which HTML-entities exist (ISO 8859-1) into a form-input-field and have them rendered as HTML-entities by the corresponding var-tag in the form-handler. The 'html_quote'-attribute only seems to convert &, <, and > (and quotes?). Of course I could write my own python-method with a lot of replaces. But that would probably mean to reinvent a wheel that already exists (this seems to be a rather common task to me). Or is there a way to do it in DTML? Any help appreciated. Markus Kemmerling
On Wed, 3 Jan 2001 10:33:20 +0100, "Markus Kemmerling" <markus.kemmerling@mediaweb.at> wrote:
I would like to have users being able to enter german vowels
Your suggested solution is a good one if you know all your users are german, all using the same browser, all with the correct german configuraton. If not, I strongly recommend using pages encoded in utf-8, and storing your field values as unicode. Everything will then work happily for non-germans too. Standard Zope can't do this yet, you will need the patches at http://www.zope.org/Members/htrd/wstring Toby Dickenson tdickenson@geminidataloggers.com
participants (2)
-
Markus Kemmerling -
Toby Dickenson