From: Tom Link Date: 2009-02-03T22:53:34+09:00 Subject: [ruby-core:21802] [Bug #1098] Unclear encoding error: # Bug #1098: Unclear encoding error: # http://redmine.ruby-lang.org/issues/show/1098 Author: Tom Link Status: Open, Priority: Normal ruby -v: ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-cygwin] The test script below exits with the error: # This is weird/unclear/incomprehensible because I fail to see what makes ruby think I'm working with utf8. If this isn't a bug, I would kindly ask to make the error message slightly more intelligible by adding information about what is set to UTF-8, what to ISO-8859-1 etc. The way it is now this message is slighlty esoteric. Test script: # Encoding: CP850 p Encoding.default_internal, Encoding.default_external # => nil, CP850 s = "wei��" p s, s.encoding p s.encode('ISO-8859-1') ---------------------------------------- http://redmine.ruby-lang.org