Bug #12052
String#encode with xml option returns wrong result
Description
String#encode
をASCII非互換エンコーディングから同じエンコーディングへ、xml:
オプション付きで呼ぶとおかしな結果を返します。
バイナリとして変換してしまっているようです。
p "<\0>\0".encode("utf-16le", "utf-16le", xml: :text)
#=> "\u6C26\u3B74\u2600\u7467;"
No data to display