dsa89029 2014-07-18 12:39
浏览 44

打开单击标记时,将重新格式化路径URL

I have some image path whose url outputs this way (using php smarty escaping)

<a href="/documents/Capture+d%E2%80%99%C3%A9cran+2014-07-08+%C3%A0+19.33.51.png"></a>

but when I click, on this doc the browser opens a âge wholes is

`www.mysite.com/documents/Capture+d’écran+2014-07-08+à+19.33.51.png`

It seems that it is formatted in incorrect format. How can I deal with that

  • 写回答

1条回答 默认 最新

  • douzong5057 2014-07-18 12:45
    关注

    You can use url_encode() and url_decode() function for remove this type of error.

    评论

报告相同问题?

悬赏问题

  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥30 BC260Y用MQTT向阿里云发布主题消息一直错误
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)