[MacRuby] #879: open-uri/stringio throw enoding errors

MacRuby ruby-noreply at macosforge.org
Sat Aug 28 15:47:55 PDT 2010


#879: open-uri/stringio throw enoding errors
-----------------------------------+----------------------------------------
 Reporter:  smparkes@…             |       Owner:  lsansonetti@…        
     Type:  defect                 |      Status:  new                  
 Priority:  blocker                |   Milestone:                       
Component:  MacRuby                |    Keywords:                       
-----------------------------------+----------------------------------------
 {{{
 require 'open-uri'
 open("http://subefotos.com") { |f| p f.content_type, f.charset,
 f.read.encoding }
 }}}
 generates
 {{{
 incompatible character encodings: UTF-8 and ASCII-8BIT
 (Encoding::CompatibilityError)
 }}}
 The page is iso-8859-1 and has the correct header.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/879>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list