You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Bernhard Reutner-Fischer (JIRA)" <ji...@apache.org> on 2010/11/22 13:09:13 UTC

[jira] Issue Comment Edited: (CMIS-279) [PATCH] unicode properties not handled correctly

    [ https://issues.apache.org/jira/browse/CMIS-279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12934444#action_12934444 ] 

Bernhard Reutner-Fischer edited comment on CMIS-279 at 11/22/10 7:07 AM:
-------------------------------------------------------------------------

patch against current trunk.

With this patch i'm successfully able to createDocuments (and browse them).
Please install.

      was (Author: aldot):
    patch against current trunk
  
> [PATCH] unicode properties not handled correctly
> ------------------------------------------------
>
>                 Key: CMIS-279
>                 URL: https://issues.apache.org/jira/browse/CMIS-279
>             Project: Chemistry
>          Issue Type: Bug
>          Components: python-cmislib
>            Reporter: Bernhard Reutner-Fischer
>         Attachments: cmislib-be-unicode-clean.patch
>
>   Original Estimate: 0.02h
>  Remaining Estimate: 0.02h
>
> model: Be unicode clean
> Trying to createDocument(u'abc cdeöäüß%§-_caféè.txt', ...)
> throws an error in CmisObject::_getEntryXmlDoc() near str(propValue):
> UnicodeEncodeError: 'ascii' codec can't encode characters in position 7-10: ordinal not in range(128)
> Also we need to pass down an appropriate encoding to xmlDoc.toxml() to avoid
> errors from httplib.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.