Skip to content
Browse files

test for unescaping of non-utf8 encoded data

  • Loading branch information...
1 parent a3c396c commit 26867be194d5a8f8f8ea7007526e1459238a4482 Dennis committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 test/parse.test.js
View
4 test/parse.test.js
@@ -141,6 +141,10 @@ module.exports = {
qs.parse('{%:%}').should.eql({ '{%:%}': '' });
qs.parse('foo=%:%}').should.eql({ 'foo': '%:%}' });
qs.parse('foo=%:%}%20').should.eql({ 'foo': '%:%} ' });
+ },
+
+ 'test unescaping of non-utf8 encoded data': function(){
+ qs.parse('foo=%E4%20bar').should.eql({ 'foo': String.fromCharCode('228') + ' bar' });
}
// 'test complex': function(){

0 comments on commit 26867be

Please sign in to comment.
Something went wrong with that request. Please try again.