Home discussions products about writing Projects

Open Source for Collaborative Knowledge Development and Learning

Note: This site's content is accessible to all versions of every browser. However, this browser may not support basic Web standards, preventing the display of our site's design details. We support the mission of the Web Standards Project in the campaign encouraging users to upgrade their browsers.


Blog Entry [details and replies]

KNotations :: Documentation and development plans from the KnowNet development team Weblog 84 entries 23-June-2006 1 authors
show or hide details for this item Setting ecto up to pre-process nasty characters so they pass the zope zml-rpc api Blog Entry 0 replies1 resource 27-November-2004 Mike Malloch
Kind:
Blog Entry
Created:
27-November-2004 10:54:07
Last Updated:
27-November-2004 12:33:42
Author:
Mike Malloch
Status:
visible

Resources and Links:

Graham's problem blog entry Graham's problem blog entry [ Go there ]
This is the entry in Graham's blog which caused the encoding errors (after I had hand-converted the funny-i characters to single quotes :O)

Graham had some problems writing in Nissus Writer (rtf format saving) and then copying and pasting into ecto for posting...

The problem was that apostrophes were appearing as high-ascii characters like acute-accented letter-i's.

The current implementation of knotes uses default settings for Zope's XML-RPC engine and underlying XML parsing, which coughed on these characters.

We might be able to change the settings at the server, though I expect they already accept any valid unicode characters.

So, as a temporary stopgap, I explored ecto's settings... it is indeed possible to preprocess the nasties, encoding them as html entities. See this screenshot:

Ecto-Prefs-Preprocess

The results will not always be as expected for these weird characters. By the way, where do they all come from, all these special quote and apostrophe characters generated especially by MSWord? Just when I think I've seen them all, another pops up. :O)

Comments please

If you are already registered here, please click the "Login" button to send your username/password with the comment. Click the "Anonymous" button to leave a comment without logging in.

Please tell us who you are

E-Mail Address (Required)
We need a valid email address in order for you to post a comment. You will recieve an email containing a special validation link. The comment will not be published until validated
Name
Please leave your name
Title
Lead-in
Body Text ( HTML tags are allowed )
Validation
Please enter the text from the image above
Preview your comment