Bug 271981

Summary: PPT filter produces invalid XML file.
Product: [Applications] calligrastage Reporter: Matus Uzak <matus.uzak>
Component: filter/pptAssignee: Matus Uzak <matus.uzak>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: A PPT file to open with Stage
MS Word 2003 test file containing the same character causing conversion problems

Description Matus Uzak 2011-04-29 14:25:22 UTC
Created attachment 59430 [details]
A PPT file to open with Stage

Version:           unspecified
OS:                Linux



Reproducible: Always

Steps to Reproduce:
1. Open the attached file with Stage (kpresenter) 

Actual Results:  
The dialog with following message is displayed: Error message: Unexpected ''.

Expected Results:  
The PPT filter should process the attached file properly.
Comment 1 Matus Uzak 2011-05-09 20:27:21 UTC
Created attachment 59811 [details]
MS Word 2003 test file containing the same character causing conversion problems
Comment 2 Matus Uzak 2011-05-09 20:36:19 UTC
There's probably a chinese character stored in UTF16.  We save it into content.xml and it causes problem for all of our applications and OOo.  I was playing for a while with QTextCodec, but didn't make any progress.  Both Ooo and MS Office 2007 simply ignore the character when converting to ODP.  Any approach on any mind?  Me not good in encodings.
Comment 3 Matus Uzak 2011-05-09 21:17:16 UTC
QXmlStreamReader Error Description:

Error: QXmlStreamReader::NotWellFormedError
TokenType: QXmlStreamReader::Invalid
errorString: "Unexpected ''."
Comment 4 Matus Uzak 2011-05-20 13:08:13 UTC
Fixed by Thorsten. Thanks! :)

Don't add unsupported chars into xml
author	Thorsten Zachmann
commit	44f3cd1b1f71de77a347d8699ec7cee32b66d7b9