Skip to content

Instantly share code, notes, and snippets.

@hsbt
Created June 26, 2012 13:20
Show Gist options
  • Save hsbt/2995750 to your computer and use it in GitHub Desktop.
Save hsbt/2995750 to your computer and use it in GitHub Desktop.
should "not drop utf-8 bytes" do
assert_equal "あいえお", "あ\000い\343う\201え\202お".printable!
end
@hsbt
Copy link
Author

hsbt commented Jun 27, 2012

丁寧にありがとうございます。1.8.7 で NKF を使うとできました。
この方法でやってみようと思います。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment