From: "046569 (瀚林 李)" <046569@...> Date: 2013-11-02T11:42:49+09:00 Subject: [ruby-core:58131] [ruby-trunk - Bug #9073][Open] Array#join encoding problem Issue #9073 has been reported by 046569 (������ ���). ---------------------------------------- Bug #9073: Array#join encoding problem https://bugs.ruby-lang.org/issues/9073 Author: 046569 (������ ���) Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: ruby 2.1.0dev (2013-09-22 trunk 43011) [x86_64-darwin13.0.0] Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN a=['hello'] a.push 'kitty'.force_encoding('ASCII-8BIT') puts a.join => hellokitty a=['������'] a.push '������'.force_encoding('ASCII-8BIT') puts a.join => incompatible character encodings: UTF-8 and ASCII-8BIT (Encoding::CompatibilityError) => ������������(I expect) some gems return ASCII-8BIT so I had to encoding everyone. -- http://bugs.ruby-lang.org/