“Emojibake” are considered harmful

$ echo うれしいこと 悲しいことも 全部まるめて | iconv -f latin1 -t utf-8  | (tr -d '[[\000-\037][\177-\237]]'; echo)
ããããã㨠æ²ãããã¨ã å¨é¨ã¾ããã¦
文字化け on Wikipedia (© Wikimedia Foundation 2011 CC 3.0 via Commons)
Space-separated hex codepoint values: 46 72 65 64 72 69 63 6B 20 42 72 65 6E 6E 61 6E 20 EA00
EA00

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store