encode string javascript code example
Example 1: how to encode a string in javascript
var uri = "my test.asp?name=ståle&car=saab";
var res = encodeURI(uri);
Example 2: jq unencode string
# -r enable raw output
jq -r .[0].string FILE.json
var uri = "my test.asp?name=ståle&car=saab";
var res = encodeURI(uri);
# -r enable raw output
jq -r .[0].string FILE.json