Created
March 29, 2013 07:08
-
-
Save jugyo/5269238 to your computer and use it in GitHub Desktop.
unf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[0x304B, 0x3099].pack('U*') | |
#=> "が" | |
[0x304B, 0x3099].pack('U*').bytes | |
#=> [227, 129, 139, 227, 130, 153] | |
require 'unf' | |
#=> true | |
[0x304B, 0x3099].pack('U*').to_nfc | |
#=> "が" | |
[0x304B, 0x3099].pack('U*').to_nfc.bytes | |
#=> [227, 129, 140] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment