How would I encode a forward slash (/) in a file name and not in an URL?

How would I encode a forward slash (/) in a file name and not in an URL?

I can’t find anything on the web regarding file names, just URLs.

In addition, I do not want to use 0_5_oz or other replacements for the 1/2 oz.

For example: http://lemon_1/2_oz.php

http://lemon_1%2f2_oz.php resolves as http://lemon_1%2f2_oz.php  (creates and error)

http://lemon_1∕2_oz.php resolves as http://lemon_1/2_oz.php (also fails)

I tried the following character replacements and both failed:

ASCII UTF-8: %2f

Unicode Character HTML Entity (decimal): ∕

Other options, but I also think they will fail"

/

/

/

Thank you

For more info please click herehttps://stackoverflow.com/q/50375582

Have a question or need a custom quote?
info@smartinfocare.com