From: "drbrain (Eric Hodel)" Date: 2013-01-26T07:00:49+09:00 Subject: [ruby-core:51693] [ruby-trunk - Bug #6995][Rejected] Code converter not found (UTF-8 to EUC-TW) Issue #6995 has been updated by drbrain (Eric Hodel). Status changed from Feedback to Rejected Marking rejected due to lack of feedback from the submitter. ---------------------------------------- Bug #6995: Code converter not found (UTF-8 to EUC-TW) https://bugs.ruby-lang.org/issues/6995#change-35660 Author: blueowl (blue owl) Status: Rejected Priority: Normal Assignee: naruse (Yui NARUSE) Category: M17N Target version: ruby -v: ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux]" and "ruby 2.0.0dev (2012-09-07 trunk 36920) [i686-linux] Hello, recently I was doing some conversion from Unicode into Chinese encodings, and I came across what may be a bug in Ruby. Attempting to transcode a traditional Chinese character from UTF-8 to EUC-TW results in a "code converter not found" error. This character exists in Unicode (U+8B6F), and if it were missing in EUC-TW, then I would expect "Encoding::UndefinedConversionError" rather than "Encoding::ConverterNotFoundError". Relevant code and Ruby versions are shown below for reproducing this issue. $ ruby -v -e '"���".encode("EUC-TW")' ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux] /tmp/test.rb:3:in `encode': code converter not found (UTF-8 to EUC-TW) (Encoding::ConverterNotFoundError) from /tmp/test.rb:3:in `
' $ ~/ruby_vm/nightly/bin/ruby -v -e '"���".encode("EUC-TW")' ruby 2.0.0dev (2012-09-07 trunk 36920) [i686-linux] /tmp/test.rb:3:in `encode': code converter not found (UTF-8 to EUC-TW) (Encoding::ConverterNotFoundError) from /tmp/test.rb:3:in `
' -- http://bugs.ruby-lang.org/