Talk:URL decoding: Difference between revisions

Content added Content deleted
mNo edit summary
No edit summary
Line 29: Line 29:


:::::::::: Ok, you have lost me. What do you mean by "works" in that paragraph? --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 14:33, 28 May 2015 (UTC)
:::::::::: Ok, you have lost me. What do you mean by "works" in that paragraph? --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 14:33, 28 May 2015 (UTC)

::::::::::: You mean in the first sentence? I'm saying that the string %60Abdu%27l-Bah%C3%A1 is correctly URL-decoded to `Abdu'l-Bahá .. that works. Try this URL: https://ideone.com/H9QJMT (bottom of the page "stdout") .. as you can see, it doesn't work here. It doesn't work under Windows gawk.exe. etc.. in these place it returns the string `Abdu'l-Bahá .. that's not working. Actually it works as expected because the function is not multi-byte aware so it converts %C3%A1 into two separate letters à and ¡ .. which correspond to %C3 and %A1. Rather it should be printing á which is a multi-byte letter corresponding to %C3%A1. But the function is not multi-byte aware. If it is working someplace it's only blind luck that the OS is doing some magic for you, but that can't be relied on. -- [[User:3havj7t3nps8z8wij3g9|3havj7t3nps8z8wij3g9]] ([[User talk:3havj7t3nps8z8wij3g9|talk]]) 14:42, 28 May 2015 (UTC)