greengiant83
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2012
09:57 AM
How to decode \u0026 in url
I am requesting JSON from a remote server and one of the url properties has \u0026 in place of the ampersand in the url's query string.
For example instead of:
http://mydomain.com/getvideo?id=101&foo=bar
It is returning
http://mydomain.com/getvideo?id=101\u0026foo=bar
What kind of encoding is this? How can decode the url so Roku can play it?
For example instead of:
http://mydomain.com/getvideo?id=101&foo=bar
It is returning
http://mydomain.com/getvideo?id=101\u0026foo=bar
What kind of encoding is this? How can decode the url so Roku can play it?
1 REPLY 1
belltown
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2012
04:48 PM
Re: How to decode \u0026 in url
"greengiant83" wrote:
I am requesting JSON from a remote server and one of the url properties has \u0026 in place of the ampersand in the url's query string.
For example instead of:
http://mydomain.com/getvideo?id=101&foo=bar
It is returning
http://mydomain.com/getvideo?id=101\u0026foo=bar
What kind of encoding is this? How can decode the url so Roku can play it?
What are you using to decode your JSON?
If you use the JSONDecoder parser in GitHub (see this post: http://forums.roku.com/viewtopic.php?f=34&t=49609) then it should automatically change the \u0026 into an ampersand.