Problem with cyrillic characters in friendly url

前端 未结 3 1546
旧巷少年郎
旧巷少年郎 2021-01-21 09:53

Here\'s the thing. I have friendly urls like

http://site.com/blog/read/мъдростта-на-вековете

http://site.com/blog/read/green-apple

3条回答
  •  粉色の甜心
    2021-01-21 10:37

    The text is just being encoded to fit the specification for URLs.

    Echo out the data to a log to see what you are actually trying to pass to the database.

    You should be able to decode it with urldecode.

提交回复
热议问题