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)

print System.getProperty('file.encoding');

> 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
users mailing list

Reply via email to