Skip to content

Instantly share code, notes, and snippets.

@yazumoto
Last active February 1, 2016 06:56
Show Gist options
  • Select an option

  • Save yazumoto/694b3600a1ff11f5bd16 to your computer and use it in GitHub Desktop.

Select an option

Save yazumoto/694b3600a1ff11f5bd16 to your computer and use it in GitHub Desktop.
Rubyでエンコードを行う

前の文字コードが出力、後の文字コードが入力

string.encode('UTF-8', 'Shift_JIS')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment