module Rabbit::Converter

Public Instance Methods

keep_kcode(new_kcode) { || ... } click to toggle source
# File lib/rabbit/utils.rb, line 462
def keep_kcode(new_kcode)
  yield
end
to_eucjp(str) click to toggle source
# File lib/rabbit/utils.rb, line 479
def to_eucjp(str)
  NKF.nkf("-e", str)
end
to_eucjp_from_utf8(str) click to toggle source
# File lib/rabbit/utils.rb, line 487
def to_eucjp_from_utf8(str)
  NKF.nkf("-eW", str)
end
to_utf8(str) click to toggle source
# File lib/rabbit/utils.rb, line 475
def to_utf8(str)
  NKF.nkf("-w", str)
end
to_utf8_from_eucjp(str) click to toggle source
# File lib/rabbit/utils.rb, line 483
def to_utf8_from_eucjp(str)
  NKF.nkf("-wE", str)
end