Problem with cyrillic characters in friendly url

前端 未结 3 1508
旧巷少年郎
旧巷少年郎 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:14

    Actually, Firefox is cheating you here: the URL actually is url-encoded, but is shown as if it wasn't. So copy-pasting and retrieving it on the server will have the URL encoded.

    (Not sure if other browsers behave in the same way.)

提交回复
热议问题