Text format garbled, hoping to support UTF-8 format

#130 · closed · 5 comments

View on GitHub ↗

SunBrook

![Image](https://github.com/user-attachments/assets/94546c59-5505-4b25-90ba-70a0fe76ebc3)

Comments

TheWaWaR

Maybe your text is not UTF-8?

SunBrook

> Maybe your text is not UTF-8? nope, this is my text file, you verify it [A.txt](https://github.com/user-attachments/files/19022976/A.txt)

TheWaWaR

It's a utf-8 file, but your browser see this as gkb/gb18030 or something else. <img width="336" alt="Image" src="https://github.com/user-attachments/assets/294de965-1618-4f1d-9936-75db1424375f" />

SunBrook

BOM UTF-8 Normal display UTF-8 Messy code ![Image](https://github.com/user-attachments/assets/51d381a2-0d37-41c1-ab94-cceab356ee22) ![Image](https://github.com/user-attachments/assets/3813b4b6-9ba3-4dc0-9566-c1157b587a3f) [A_BOM_UTF8.txt](https://github.com/user-attachments/files/19025701/A_BOM_UTF8.txt) [A_UTF8.txt](https://github.com/user-attachments/files/19025702/A_UTF8.txt)

TheWaWaR

It's a browser issue. The 2 files you provided works well in my Chrome but not Safari. You may just download it and open it in text editor.