Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoding bug in MainDocumentPartFilterOuputStream #357

Closed
ChilamYan opened this issue Jun 17, 2019 · 2 comments
Closed

Encoding bug in MainDocumentPartFilterOuputStream #357

ChilamYan opened this issue Jun 17, 2019 · 2 comments

Comments

@ChilamYan
Copy link

Hi,
I have a problem when I save the xml word save to docx use "WordprocessingMLPackage.save". My run-time encoding is GBK and xml encoding is UTF-8, after save, it cannot be open because the encoding not correct. I think the problem is in the file MainDocumentPartFilterOuputStream, I found three place invoking the method getBytes(), it will get the Bytes by run-time encoding not use UTF-8, after I change the code getBytes() to getBytes("UTF-8"), the file can open after save. please help to fix this problem, thanks.

@plutext
Copy link
Owner

plutext commented Jun 20, 2019

Thank you, fixed by 69d9303
Will be in 8.1.1

@plutext plutext closed this as completed Jun 20, 2019
@plutext
Copy link
Owner

plutext commented Jul 2, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants