最近のRubyでのUTF-16サロゲートペア検出うーん
$ ruby -e '"𠮷野家".codepoints.each{puts "#{it.chr(Encoding::UTF_8)}: #{it >= 0x10000}"}'
𠮷: true
野: false
家: false
最近のRubyでのUTF-16サロゲートペア検出うーん
$ ruby -e '"𠮷野家".codepoints.each{puts "#{it.chr(Encoding::UTF_8)}: #{it >= 0x10000}"}'
𠮷: true
野: false
家: false
If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.zunda.ninja/users/zundan/statuses/114175668997203653 on your instance and quote it. (Note that quoting is not supported in Mastodon.)