"я".ord # => 1103 (It's a Russian letter)
我如何在Ruby 1.8.7中获得Unicode?
backports
require "rubygems" require "backports/1.8.7/string/ord" "я".ord # => 1103