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

A PlainText preview is garbled when it includes non-ASCII characters encoded with not UTF-8(e.g. Shift_JIS) #2472

Open
atsurinange opened this issue Feb 24, 2024 · 1 comment

Comments

@atsurinange
Copy link

Hi experts,
We have a problem that ACS preview functionality provides garbled results when a plain text document has non-ASCII characters encoded with not UTF-8. We have ACS community edition 7.3.1, 7.4 and 23.1 and this happens in all versions.
Even if the same characters are included in a plain text encoded with UTF-8, transformed result in preview window is correct (not garbled)

Of coursse, if this document is not a plain text but a MS-Word or so, such garbled result will not be provided.
In my understanding, the transformer is libreoffice in case of transforming from plain text to pdf for preview window. But I confirmed libreoffice on server could open this plain text file with non-ASCII characters(Japanese) encoded with Shift_JIS properly...

Much appreciated if you give us supportive information to resolve this... Or clarify whether this is a bug or not.

#Garbled preview result in case of Shift_JIS encoding plain text
shift_jis_preview_result

#Correct preview result in case of UTF-8 encoding plain text
utf-8_preview_result

@atsurinange
Copy link
Author

Can anyone provide any information about this? As of now, there is no way to view this kind of contents without downloading for consumer users. This is so hard to use alfresco as you can imagine easily...

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

1 participant