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 151 def def_to_iso_8859_1_from_utf_8 def_convert do |value| array_utf8 = #{value}.unpack('U*') array_enc = [] array_utf8.each do |num| if num <= 0xFF array_enc << num else array_enc.concat "&\#\#{num};".unpack('C*') end end array_enc.pack('C*') end end