diff options
Diffstat (limited to 'test/rexml/test_document.rb')
-rw-r--r-- | test/rexml/test_document.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rexml/test_document.rb b/test/rexml/test_document.rb index 3b6d7121fe..2725235907 100644 --- a/test/rexml/test_document.rb +++ b/test/rexml/test_document.rb @@ -248,9 +248,9 @@ EOX def test_utf_16be xml = <<-EOX.encode("UTF-16BE").force_encoding("ASCII-8BIT") - <?xml version="1.0" encoding="UTF-16"?> - <message>Hello world!</message> - EOX +<?xml version="1.0" encoding="UTF-16"?> +<message>Hello world!</message> +EOX bom = "\ufeff".encode("UTF-16BE").force_encoding("ASCII-8BIT") document = REXML::Document.new(bom + xml) assert_equal("UTF-16", document.encoding) |