Ruby 初心者スレッド Part 48
■ このスレッドは過去ログ倉庫に格納されています
0771デフォルトの名無しさん
2012/04/13(金) 18:41:23.59> Encoding::ConverterNotFoundError: code converter not found (UTF-8 to UTF-16)
irb> p "utf-8文字列\xE3".encode('UTF-16BE', :invalid => :replace, :replace => '').encode('UTF-8')
"utf-8文字列"
■ このスレッドは過去ログ倉庫に格納されています