Flowdock
method

is_utf8?

Importance_0
v3.0.9 - Show latest stable - 0 notes - Class: String
is_utf8?() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/core_ext/string/multibyte.rb, line 46
    def is_utf8? #:nodoc
      case encoding
      when Encoding::UTF_8
        valid_encoding?
      when Encoding::ASCII_8BIT, Encoding::US_ASCII
        dup.force_encoding(Encoding::UTF_8).valid_encoding?
      else
        false
      end
    end
Register or log in to add new notes.