ONLYOFFICE / DesktopEditors

An office suite that combines text, spreadsheet and presentation editors allowing to create, view and edit local documents
https://www.onlyoffice.com
Other
2.77k stars 318 forks source link

Wrong text encoding when open some wmf image contain Chinese #1031

Open kenifanying opened 1 year ago

kenifanying commented 1 year ago

This issue is unique.

Operating System

Windows 10 / 8.1 / 7

Version information

7.2.0.204

Expected Behavior

Image correctly displayed

Actual Behavior

Wrong text encoding when open some wmf image

onlyoffice vs ms office

encoding-test

Reproduction Steps

open the test file

encoding-test.docx

Additional information

No response

TatianaKirillova commented 1 year ago

Hey, kenifanying

Thanks for your request!

The picture is displayed correctly. I attach the display of the picture itself in the Paint editor, as well as in the Onlyoffice editor and MS Word 2019. image1 wmf - Paint 2023-08-02 12 56 35

kenifanying commented 1 year ago

The picture is displayed correctly. I attach the display of the picture itself in the Paint editor, as well as in the Onlyoffice editor and MS Word 2019.

Maybe related to encoding environment, I test it under Windows 7/10/11 Simplified Chinese environment which codepage is cp936. As you can see, the original snapshot on the right can display the correct character which is 9 x 270 x N个字节.

image

I think onlyoffice can fallback to default codepage in windows just like ms office, if decode failed when display wmf image.

TatianaKirillova commented 1 year ago

@kenifanying, Do you open MS Word editor and ONLYOFFICE editor on the same computer?

kenifanying commented 1 year ago

@kenifanying, Do you open MS Word editor and ONLYOFFICE editor on the same computer?

Yes, see my original attachment. I take the snapshot side by side on the same computer. (left: onlyoffice, right: ms office)

TatianaKirillova commented 1 year ago

Thank, @kenifanying ! I can confirm that the problem exists. I created ticket 63565 in our internal tracker with your issue.