kotx / render

Cloudflare Worker to proxy and cache requests to R2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chinese characters may display as garbled text

IlluminateDarkheat opened this issue · comments

commented

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

commented

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

commented

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?

commented

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

commented

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?

commented

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

commented

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