diff --git a/lib/escape.js b/lib/escape.js index 05f74ec..9a1fc72 100644 --- a/lib/escape.js +++ b/lib/escape.js @@ -42,9 +42,6 @@ module.exports = function (c, code, meta, options){ //Control sets 0 and 1 if (code < 160) return unicode (code); - //Printable 8-bit character - if (code < 256) return c; - //Latin1 multibyte character return options.unicode ? unicode (code) : c; -}; \ No newline at end of file +}; diff --git a/test/stringify.js b/test/stringify.js index 250c513..bcc0d53 100644 --- a/test/stringify.js +++ b/test/stringify.js @@ -15,7 +15,7 @@ var tests = { "iso-8859-1": function (){ var options = { unicode: true }; var data = properties.stringify ({ "¡": "ÿ", "Ā": "a" }, options); - var expected = "¡ = ÿ" + EOL + "\\u0100 = a"; + var expected = "\\u00a1 = \\u00ff" + EOL + "\\u0100 = a"; assert.strictEqual (data, expected); }, "comments multiline": function (){ @@ -156,4 +156,4 @@ var tests = { for (var test in tests){ tests[test] (); -} \ No newline at end of file +}