opengist icon indicating copy to clipboard operation
opengist copied to clipboard

when run in the linux and docker , Chinese garbled characters

Open jueshifuqing opened this issue 1 year ago • 1 comments

when run in the linux and docker , Chinese garbled characters(such like "\345\225\212\345\217\221.sql")

when run in windows , Chinese text is ok.

is this a bug?

jueshifuqing avatar Jun 05 '24 13:06 jueshifuqing

I also met this problem, I have no idea, anyone can help?

zfhxi avatar Jul 04 '24 05:07 zfhxi

Met this problem too.

Reproduce:

  1. Build an opengist instance in Docker
  2. Then create a gist named by any CJK characters, like "中文名.txt"
  3. After creation, click the "raw file" button in the gist page
  4. Error

yqs112358 avatar Nov 15 '24 08:11 yqs112358

Met this problem too.

Reproduce:

1. Build an opengist instance in Docker

2. Then create a gist named by any CJK characters, like "中文名.txt"

3. After creation, click the "raw file" button in the gist page

4. Error

Thanks for the reproduction steps

thomiceli avatar Nov 17 '24 17:11 thomiceli

Need add Content-Type tell browser, the encoding use utf-8, chinese deafult use GBK-8 encoding

I fix it https://github.com/thomiceli/opengist/pull/441

awkj avatar Mar 16 '25 06:03 awkj