[Rails] Re: rails2.3/ruby1.9: invalid byte sequence in utf-8 with blank?

2009-04-11 Thread buddycat
one last update. i discovered that the problem is that i have windows asp content from a legacy server that i use Net::HTTP to import into my rails site. windows allows high ascii value codes (in this case ascii 150/unicode 8211 resembles as dash, but isn't. it's a fancy longer windows dash). anyw

[Rails] Re: rails2.3/ruby1.9: invalid byte sequence in utf-8 with blank?

2009-04-10 Thread buddycat
thanks conrad, debian lenny apache2-mpm-worker dbd-odbc (0.2.4) dbi (0.4.1) deprecated (2.0.1) fastthread (1.0.7) json (1.1.4) passenger (2.1.3) pg (0.8.0) rack (0.9.1) rails-sqlserver-2000-2005-adapter (2.2.15) rake (0.8.4) ruby-1.9.1p0 compiled with pthreads, shared rails2.3 branch in vendor/ra

[Rails] Re: rails2.3/ruby1.9: invalid byte sequence in utf-8 with blank?

2009-04-10 Thread Conrad Taylor
On Fri, Apr 10, 2009 at 2:35 PM, buddycat wrote: > > as an update, i added a rescue clause to blank.rb to find out what was > choking: > > blank.rb:50 > class String #:nodoc: > def blank? >self !~ /\S/ > > rescue > raise "#{self.class} #{self.encoding.name} #{self.valid_encoding?} # > {self

[Rails] Re: rails2.3/ruby1.9: invalid byte sequence in utf-8 with blank?

2009-04-10 Thread buddycat
as an update, i added a rescue clause to blank.rb to find out what was choking: blank.rb:50 class String #:nodoc: def blank? self !~ /\S/ rescue raise "#{self.class} #{self.encoding.name} #{self.valid_encoding?} # {self}" end end i reran my page and checked the log. what i get is that