From: Alexander Beisig Date: 2009-02-25T08:20:19+09:00 Subject: [ruby-core:22437] [Bug #1204] Bug in String#force_encoding? Bug #1204: Bug in String#force_encoding? http://redmine.ruby-lang.org/issues/show/1204 Author: Alexander Beisig Status: Open, Priority: Normal ruby -v: ruby 1.9.2dev (2009-02-24 trunk 22579) [i686-linux] Running the attached test program (on UTF-8 terminal): $ ruby test.rb # "\xC3\xB6" 2 # "��" 2 # "\xC3\xB6" 2 # "��" 1 I don't understand why a.size is 2, especially since b.size is correct. Am I missing something? ---------------------------------------- http://redmine.ruby-lang.org