# [Zope3-Users] Re: Zwiki issues with Unicode text pasted from Word

I experienced this problem too.  I thought I fixed or worked around it
a while ago, though.  I may have just hacked my system.

- it is the output (view) that produces the error
- add and edit work fine
- Word has nothing to do with the problem (any source of non-ascii
data will have the same effect)
- I don't remember if the problem is in zwiki or docutils

Hmm, now that I think about it, the problem might be fixed in a newer
version of docutils.  I'll make a note to revisit this when I have
a few minutes.  If you don't want to wait, you might search the
zope3-dev list and the Collector to see if I mentioned it there.

HTH,
-D

On Tue, Oct 04, 2005 at 09:32:58AM -0400, Joel Moxley wrote:
| Thank you Duncan and Gary for your informative replies yesterday.  I'm
| working on understanding and implementing your input.
|
| In the meantime, I'm having an issue with my zwiki.  I checked on
| google, and I do not find this as a known issue.  I have not had time
| to extensively document the behavior, but I can report the following:
|
| My zwiki page bombed (System Error) when a user copied and pasted a
| paragraph from Microsoft Word into the edit form of the wiki page.
| After some quick debugging, I found two unicode characters to be the
| problem:
|
| Unicode characters 2103 and 2019 ("right single quotation mark" and
| "en dash", respectively).
|
| Thus, whenever we have apostrophes and dashes in Word, they will kill
| the wiki page when copied in the edit form.  Which is suboptimal :)
|
| I pasted the traceback here:
| http://paste.plone.org/289
|
| which culminates in "UnicodeEncodeError: 'ascii' codec can't encode
| character u'\u2013' in
| position 4104: ordinal not in range(128)"
|
| Clearly, the wiki just does not know how to encode these characters.
| Anyways, a workaround or fix would be very nice because one of the
| main reason I wanted the wiki was to not have to deal with revisions
| in Word.
|
| Thanks,
| Joel
|
| PS: This is zope-3.1final and zwiki-3.0.0

--
\begin{humor}
Disclaimer:
If I receive a message from you, you are agreeing that:
1. I am by definition, "the intended recipient"
2. All information in the email is mine to do with as I see fit and make
such financial profit, political mileage, or good joke as it lends
itself to. In particular, I may quote it on USENET or the WWW.
3. I may take the contents as representing the views of your company.
4. This overrides any disclaimer or statement of confidentiality that may
\end{humor}

www: http://dman13.dyndns.org/~dman/            jabber: [EMAIL PROTECTED]


signature.asc
Description: Digital signature

_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users