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
Actions
Like0
Like0