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

Chinese characters may display as garbled text #29

Closed
IlluminateDarkheat opened this issue May 14, 2023 · 6 comments
Closed

Chinese characters may display as garbled text #29

IlluminateDarkheat opened this issue May 14, 2023 · 6 comments

Comments

@IlluminateDarkheat
Copy link

The possible reason is that the Chinese characters encoded in UTF-8 were read in GBK format.

An example:
搴斿鐗规畩鏃舵湡鐨勫簲鎬ョ墿璧勬竻鍗晇1.2.pdf
Actually should be:
应对特殊时期的应急物资清单v1.2.pdf

@kotx
Copy link
Owner

kotx commented May 14, 2023

Is this in a file listing or in an HTML file or something else?

@IlluminateDarkheat
Copy link
Author

Is this in a file listing or in an HTML file or something else?

I'm not quite sure, do you mean the configuration here?

@kotx
Copy link
Owner

kotx commented May 15, 2023

Where are you seeing that Chinese characters are garbled? Is it in a file served by render?

@IlluminateDarkheat
Copy link
Author

IlluminateDarkheat commented May 15, 2023

On the page of Workers.

I'm not sure if render will generate a file in the R2 bucket, maybe there is something wrong with my configuration?

@kotx
Copy link
Owner

kotx commented May 15, 2023

Just pushed a commit that ensures the directory listing is parsed as UTF-8, (version 1.1.3), let me know if it works.

@IlluminateDarkheat
Copy link
Author

Everything is fine now. Thank you very much for your work!

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