szabodanika / microbin

A secure, configurable file-sharing and URL shortening web app written in Rust.
https://microbin.eu
BSD 3-Clause "New" or "Revised" License
2.66k stars 167 forks source link

Unicode paste displayed as gibberish in raw text #245

Open tddschn opened 9 months ago

tddschn commented 9 months ago

Describe the bug

Unicode paste displayed as gibberish in raw text.

The paste: https://pub.microbin.eu/upload/emu-eagle-goose

CleanShot-2023-12-21T09-31-40@2x

Raw:

https://pub.microbin.eu/raw/emu-eagle-goose

CleanShot-2023-12-21T09-31-34@2x

To Reproduce Steps to reproduce the behavior:

  1. Go to https://pub.microbin.eu/ and create a new paste with content 测试
  2. Click on Raw Text of the new paste

Expected behavior Raw text shown as normal readable unicode.