End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
String#kconv
String#kconv(to_enc, from_enc)
ext/nkf/lib/kconv.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/ext/nkf/lib/kconv.rb, line 205
def kconv(to_enc, from_enc=nil)
from_enc = self.encoding if !from_enc && self.encoding != Encoding.list[0]
Kconv::kconv(self, to_enc, from_enc)
end