Actions
Bug #4119
closedabout encoding convertion
Description
=begin
test script:
#encoding: gbk
p "asdf".encode('utf-8')
p "的".encode('utf-8')
p " ".encode('utf-8')
p "\xa3\xa0".encode('utf-8')
output:
"asdf"
"\u7684"
"\u3000"
D:/doc/Ruby Projects/Arachno Default/test.rb:5:in encode': "\xA3\xA0" from GBK to UTF-8 (Encoding::UndefinedConversionError) from D:/doc/Ruby Projects/Arachno Default/test.rb:5:in
'
"\xA3\xA0" is a correct gbk encoding but it seemed invalid in utf-8 ?
=end
Updated by naruse (Yui NARUSE) about 14 years ago
- Status changed from Open to Rejected
=begin
It means,
- 0xA3A0 is valid in GBK encoding scheme
- but the code point 0xA3A0 is not assgined any characers
- so the convert fails conversion
=end
Actions
Like0
Like0