Permalink
Browse files

test: querystring.escape with multibyte characters

Add a test case for querystring.parse with multibyte characters
under 0x800.

PR-URL: #11251
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information...
watilde authored and italoacasas committed Feb 9, 2017
1 parent 809aea3 commit 803be085be1cb1324083024759f498a09b23aa04
Showing with 1 addition and 0 deletions.
  1. +1 −0 test/parallel/test-querystring-escape.js
@@ -8,6 +8,7 @@ assert.deepStrictEqual(qs.escape(5), '5');
assert.deepStrictEqual(qs.escape('test'), 'test');
assert.deepStrictEqual(qs.escape({}), '%5Bobject%20Object%5D');
assert.deepStrictEqual(qs.escape([5, 10]), '5%2C10');
+assert.deepStrictEqual(qs.escape('Ŋōđĕ'), '%C5%8A%C5%8D%C4%91%C4%95');
// using toString for objects
assert.strictEqual(

0 comments on commit 803be08

Please sign in to comment.