public Method

Converter.def_to_iso_8859_1_from_utf_8

There's no documentation for this item.

Source Code

# File rss/converter.rb, line 142
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
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.