[R] URLdecode problems

2014-09-01 Thread Oliver Keyes
Hey all, So, I'm attempting to decode some (and I don't know why anyone did this) URl-encoded user agents. Running URLdecode over them generates the error: Error in rawToChar(out) : embedded nul in string Okay, so there's an embedded nul - fair enough. Presumably decoding the URL is exposing it

Re: [R] URLdecode problems

2014-09-01 Thread Jeff Newmiller
I would guess that the original URLs were encoded somehow (non-ASCII), and the person who received them didn't understand how to deal with them either and url-encoded them with the thought that they would not lose information that way. Unfortunately, they probably lost the meta information as

Re: [R] URLdecode problems

2014-09-01 Thread Hadley Wickham
Hi Oliver, I think you're being misled by the default behaviour of warnings: they all get displayed at once, before control returns to the console. If you making them immediate, you get a slightly more informative error: URLdecode(0;%20@%gIL) Warning in URLdecode(0;%20@%gIL) : out-of-range