Actions
Bug #9073
closedArray#join encoding problem
Status:
Third Party's Issue
Assignee:
-
Target version:
-
ruby -v:
ruby 2.1.0dev (2013-09-22 trunk 43011) [x86_64-darwin13.0.0]
Backport:
Description
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.
Actions
Like0
Like0