Displaying 1 result from an estimated 1 matches for "240xyz".
Did you mean:
240x67
2006 May 24
0
HTMLEntities.decode_entities - problems with output
...amp;nbsp;xyz''
=> " xyz"
irb(main):006:0> conv = Iconv.new("ASCII", "UTF-8")
=> #<Iconv:0x2c297f8>
irb(main):007:0> y = conv.iconv(x)
=> " xyz"
irb(main):008:0> HTMLEntities.decode_entities(y)
=> "\302\240xyz"
irb(main):009:0> conv = Iconv.new("UTF-8", "ISO-8859-1")
=> #<Iconv:0x2c12ed8>
irb(main):010:0> conv.iconv(y)
=> " xyz"
--
Posted via http://www.ruby-forum.com/.