Ruby 1.9
#encoding: utf-8
"漢" =~ /\p{Han}/
More Related Contents:
- ruby 1.9: invalid byte sequence in UTF-8
- How do I remove emoji from string
- How does the magic comment ( # Encoding: utf-8 ) in ruby work?
- How to get rid of non-ascii characters in ruby
- Nokogiri, open-uri, and Unicode Characters
- Set global default encoding for ruby 1.9
- How to avoid tripping over UTF-8 BOM when reading files
- Ruby 1.9: how can I properly upcase & downcase multibyte strings?
- Convert unicode codepoint to string character in Ruby
- Is this the best way to unescape unicode escape sequences in Ruby?
- How to pass command line arguments to a rake task
- Parsing a JSON string in Ruby
- How to set TLS context options in Ruby (like OpenSSL::SSL::SSL_OP_NO_SSLv2)
- Why does installing Nokogiri on Mac OS fail with libiconv is missing?
- Pass variables to Ruby script via command line
- ‘UCS-2’ codec can’t encode characters in position 1050-1050
- Why doesn’t Python recognize my utf-8 encoded source file?
- What is the difference between Ruby 1.8 and Ruby 1.9
- Is there a reason that we cannot iterate on “reverse Range” in ruby?
- Open an IO stream from a local file or url
- Ruby max integer
- Ruby Regular expression to match a url [duplicate]
- How can I update Ruby version 2.0.0 to the latest version in Mac OS X v10.10 (Yosemite)?
- Equivalent of cURL for Ruby?
- What is the difference between map, each, and collect? [duplicate]
- How do I create a class instance from a string name in ruby?
- Measure the distance between two strings with Ruby?
- Rspec: expect vs expect with block – what’s the difference?
- Mountain Lion rvm install 1.8.7 x11 error
- Combine two Arrays into Hash