【发布时间】:2018-05-16 16:12:13
【问题描述】:
如何在文件名而不是 URL 中编码正斜杠 (/)?
我在网上找不到任何关于文件名的信息,只有 URL。
此外,我不想用 0_5_oz 或其他替代品来代替 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
【问题讨论】: