Hongmu Notes

🚪 Escape encoding and decoding

Enter the text to get the %XX / %uXXXX encoding string. Enter the encoding string to restore the original text.

Escape encoding and decoding

Instructions for use

  • Encoding: Alphanumeric and @ * _ + - . / remain as they are, and the rest are converted to %XX or %uXXXX
  • Decoding: Restore %uXXXX and %XX into characters, which can be verified back and forth
  • Encoding is not encryption: no key is required, anyone can restore it, do not use it to store sensitive information

Full-width character escape

Full-width punctuation marks and Chinese characters are both non-ASCII characters and have the same encoding rules, but they are most easily confused with half-width characters in the text.

The difference between full-width and half-width

Full-width punctuation occupies two bytes of width, and half-width punctuation occupies one byte.

After encoding, the full-width punctuation is also %uXXXX, which is consistent with Chinese characters.

Common full-width characters that need to be escaped

Full-width commas, periods, question marks, and exclamation points

Full-width spaces and full-width alphanumeric characters

Code length rules

Each full-width character occupies 6 characters, the same as Chinese characters

The entire full-width text is approximately six times longer than the original text after encoding.

processed together with kanji

There is no need to separate punctuation and Chinese characters, just paste the entire paragraph

The output is arranged in the original order, and the punctuation position remains unchanged.

Whether to restore full width after decoding

Yes. Decoding is restored according to code bits. Full-width is still full-width and will not automatically change to half-width.

If you need half-width format, please use the character conversion tool

All keywords and tutorials 12

❓ FAQ

Are full-width letters also escaped?
Yes. Full-width letters are not ASCII characters and are also converted to %uXXXX. After decoding, they are still full-width characters.
Can it be mixed with half-width?
Can. The half-width letters and numbers remain intact, and only the full-width part is escaped, so the text with mixed Chinese and English can be processed as a whole paragraph.