Support non-ASCII characters
Non-ASCII sharacters don't parse correctly:
$ cat test.txt
["čšž"]
$ cat test.txt|jsawk
["Äšž"]
Debian 2.6.39 ii spidermonkey-bin 1.9.1.16-20 cat /tmp/t | jsawk 'this.age++' [{"first":"алалал","last":"345345пвапва","from":"england","age":53,"sports":["rugby","badmitton","snooker"]}]
Debian 4.2.0 ii libmozjs-24-dev 24.2.0-2 cat /tmp/t | jsawk 'this.age++' [{"first":"алалал","last":"345345пвапва","from":"england","age":53,"sports":["rugby","badmitton","snooker"]}]
libmozjs don't working correctly?
I have libmozjs-24-dev 24.2.0-3ubuntu1.
I have added a possible fix for this in the pull request (not thoroughly tested but it works for me)
shrx, Thank you help me ps: if need use an after script (-a option) then use cat ./test | jsawk -a 'return decodeURIComponent(escape(this[0].name))'