kconv(to_enc, from_enc=nil)
public
Convert self to to_enc. to_enc and from_enc are given as constants of Kconv or Encoding
objects.
Show source
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