Link to home
Start Free TrialLog in
Avatar of willsherwood
willsherwood

asked on

PHP, htmlentities (etc) how to convert a space to %20 and other special characters?

i want to allow arbitrary filenames to be generated in a URL context with %20 encodings, etc.

what function call and parameters is best to use?

thanks
ASKER CERTIFIED SOLUTION
Avatar of hernst42
hernst42
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Steve Bink
See htmlspecialchars() and related functions:

http://www.php.net/manual/en/function.htmlspecialchars.php
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of willsherwood
willsherwood

ASKER

thanks all