Skip to content

Instantly share code, notes, and snippets.

@hakanai
Created September 21, 2009 04:00
Show Gist options
  • Save hakanai/190058 to your computer and use it in GitHub Desktop.
Save hakanai/190058 to your computer and use it in GitHub Desktop.
What was actually sent in hex: 82 B1 82 F1 82 C9 82 BF 82 ED 82 DD 82 F1 82 C8 82 B3 82 F1 0A
Apparently this says: こんにちわみんなさん
(Yep, there was an error in the line too.)
UTF-8 of the line: E3 81 93 E3 82 93 E3 81 AB E3 81 A1 E3 82 8F E3 81 BF E3 82 93 E3 81 AA E3 81 95 E3 82 93
Turns out it was Shift-JIS. Some IRC clients (in this instance probably mIRC as the user appeared to have
no clue he was doing it wrong) seem to send this as-is. The protocol gives no mechanism to indicate a
switch of encoding, so as a result the other end is forced to guess.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment