Your encoding is wrong. The browser is decoding it correctly as those two characters. The correct UTF-8 bytes for U+4EF6 are E4, BB, and B6.
Forcing URL to convert 4-part unicode string to Chinese character
-
24-03-2022 - |
Question
My URL (which I'm passing to twitter/share
in a query string) contains %C2%BC%C3%BE
, the encoding for 件, but the browser decodes it as two characters ¼þ. How can I let the browser know that it should decode it as a single character?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow