Talk:URL decoding: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 25:
 
:::::::: As for why it's broken for you when you set those variables, I will guess that that's because whatever is interpreting those variables expects that it's talking to something other than what it's really talking to. Where if you erased them they would be passed through unchanged (and handled as utf-8 by a different part of the OS). --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 00:28, 28 May 2015 (UTC)
 
:::::::::Well, a version of the function which works regardless of environment settings or OS exists so I'll probably stick with that one as I can be sure it will work on any OS. Out of curiosity I tried it with windows compiled gawk.exe from a Windows 7 console and it doesn't work. The function isn't multi-byte aware, it treats each character as a separate character. If it does work it's just blind luck your OS is correctly handling it but that can't be relied on if you plan on distributing your code for others to use. -- [[User:3havj7t3nps8z8wij3g9|3havj7t3nps8z8wij3g9]] ([[User talk:3havj7t3nps8z8wij3g9|talk]]) 14:28, 28 May 2015 (UTC)