Maintenance Ruby 3.3 gets fixes, but no new features. 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.3.0/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