Skip to content

Instantly share code, notes, and snippets.

@ihower
Last active May 11, 2016 19:50
Show Gist options
  • Save ihower/431a57d65bc50289bff39aeeaae452bd to your computer and use it in GitHub Desktop.
Save ihower/431a57d65bc50289bff39aeeaae452bd to your computer and use it in GitHub Desktop.
a ruby example
"你好".force_encoding(Encoding::GB18030).encode(Encoding::UTF_8)
# => "浣犲ソ"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment