On 03/23/2011 10:36 PM, Ramon Gomes Brandão - SERINT wrote:
> Hi,
>
> When I try to create a page from an Office Doc in XE 2.7.1 (Add ->  Create a 
> Page from Office Document), some documents succeed without problems, others 
> get an exception caused by:
>
> java.sql.BatchUpdateException: Incorrect string value: '\xEF\x80\xBD|(%...' 
> for column 'XWR_PATCH' at row 1

This means that the database is expecting UTF8, but it got latin1 data. 
Somewhere along the way the wrong encoding is used.

As an experiment, what does this print: (put it in a wiki page)

{{groovy}}
print System.getProperty('file.encoding');
{{/groovy}}

> I get this also with the same docs when I try to use the office importer 
> macro on WYSIWYG editor.
>
> I've searched the user list archive and found something about this was a 
> misconfgured charset. But I've created the xwiki database with charset=utf8 
> just like the instructions, and double checked on mysql:
-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to