@Jarrod1937Mar 07.2010 — #Why do you want them translated to pure ascii? Only reason i can think of is your character encoding decoding setup is messed up and foreign characters are being outputted as garbage. If you use correct character encoding you should be fine, you'll just have input/output with funny looking A's if the user inputted such characters.
@MindzaiMar 07.2010 — #You literally just want  removed? The following works fine for me, just remember to save your php file as UTF-8 with no BOM.
@MindzaiMar 07.2010 — #Why do you want them translated to pure ascii? Only reason i can think of is your character encoding decoding setup is messed up and foreign characters are being outputted as garbage. If you use correct character encoding you should be fine, you'll just have input/output with funny looking A's if the user inputted such characters.[/QUOTE]
There are lots of reasons, for example creating valid URLs.
I've noticed that when webform.module receives a file upload containing a space in the filename, it emails a link with that space included in the URL instead of escaped as + or %20. For example:
Shouldn't $path be urlencode()d there? The patch is trivial but I do not have time at the moment to check to see whether it will break anything.[/QUOTE]
Only if it is going to be used in a URL, in which case you can use urlencode() when you actually output it.