Talk:URL decoding: Difference between revisions

Content added Content deleted
No edit summary
No edit summary
Line 14: Line 14:


:::::I suspect that if you were encountering issues that they might be similar. --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 04:31, 27 May 2015 (UTC)
:::::I suspect that if you were encountering issues that they might be similar. --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 04:31, 27 May 2015 (UTC)
::::::If you pass the url from stdin, is the decode work being done by the shell? When I ran it on one machine it worked, but on another machine it didn't. I looked at the code and saw it wasn't multi-byte aware, and so figured the working machine was a fluke. As you say something with LC and LANG makes sense - on the machine it didn't work is set:
:::::::*LANG=en_US.UTF-8
:::::::*LC_ALL=en_US.UTF-8
:::::::*LC_COLLATE=en_US.UTF-8.
::::::On the machine it worked none of those are set. For Rosetta Code purposes for awk to rely on the shell environment to do a urldecode seems not right? At least not very portable. (and I don't understand why enabling UTF-8 would make it not work.) -- [[User:3havj7t3nps8z8wij3g9|3havj7t3nps8z8wij3g9]] ([[User talk:3havj7t3nps8z8wij3g9|talk]]) 19:51, 27 May 2015 (UTC)