module Rabbit::Converter

Public Instance Methods

keep_kcode(new_kcode) { || ... } click to toggle source
# File lib/rabbit/utils.rb, line 480
def keep_kcode(new_kcode)
  yield
end
to_eucjp(str) click to toggle source
# File lib/rabbit/utils.rb, line 497
def to_eucjp(str)
  NKF.nkf("-e", str)
end
to_eucjp_from_utf8(str) click to toggle source
# File lib/rabbit/utils.rb, line 505
def to_eucjp_from_utf8(str)
  NKF.nkf("-eW", str)
end
to_utf8(str) click to toggle source
# File lib/rabbit/utils.rb, line 493
def to_utf8(str)
  NKF.nkf("-w", str)
end
to_utf8_from_eucjp(str) click to toggle source
# File lib/rabbit/utils.rb, line 501
def to_utf8_from_eucjp(str)
  NKF.nkf("-wE", str)
end