method
def_to_iso_8859_1_from_utf_8
def_to_iso_8859_1_from_utf_8()
public
Hide source
# File lib/rss/converter.rb, line 146 def def_to_iso_8859_1_from_utf_8 def_convert do |value| "array_utf8 = \#{value}.unpack('U*')\narray_enc = []\narray_utf8.each do |num|\nif num <= 0xFF\narray_enc << num\nelse\narray_enc.concat \"&\\#\\\#{num};\".unpack('C*')\nend\nend\narray_enc.pack('C*')\n" end end