End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Kconv#issjis
Kconv.issjis(str) => true or false
ext/nkf/lib/kconv.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/ext/nkf/lib/kconv.rb, line 165
def issjis(str)
str.dup.force_encoding(SJIS).valid_encoding?
end
Returns whether input encoding is Shift_JIS or not.