module Rabbit::Converter
Public Instance Methods
Source
# File lib/rabbit/utils.rb, line 440 def keep_kcode(new_kcode) yield end
Source
# File lib/rabbit/utils.rb, line 457 def to_eucjp(str) str.encode(Encoding::EUCJP) end
Source
# File lib/rabbit/utils.rb, line 465 def to_eucjp_from_utf8(str) str.encode(Encoding::EUCJP, Encoding::UTF_8) end
Source
# File lib/rabbit/utils.rb, line 453 def to_utf8(str) str.encode(Encoding::UTF_8) end
Source
# File lib/rabbit/utils.rb, line 461 def to_utf8_from_eucjp(str) str.encode(Encoding::UTF_8, Encoding::EUCJP) end