= private = protected
isutf8(str)
Returns whether input encoding is UTF-8 or not.
# File ext/nkf/lib/kconv.rb, line 192 def isutf8(str) str.dup.force_encoding(UTF8).valid_encoding? end