From: Brian Candler Date: 2010-09-28T15:08:33+09:00 Subject: Re: Encoding problems .. ruby 1.9.2 Bhay Zone wrote: > After 'result.force_encoding("ASCII-8BIT"), are the gsubs necessary? Why do you do them in the ruby 1.8.7 version? If they served a purpose there, then presumably they still serve a purpose. All the force_encoding business is doing is preventing these lines from crashing ruby 1.9. The bytes in the string from query-pr will still be the same. -- Posted via http://www.ruby-forum.com/.