Not a bug XenForo_Link::getTitleForUrl provides non latin character


I was trying to use XenForo_Link::getTitleForUrl to build links for my TOC plugin and that seems to work as expected until I tried a page with a 'é' character in its title. XenForo_Link::getTitleForUrl does provide the character as is instead of converting it to an 'e' for use in a URL. In such a case my TOC link would still work albeit with a page reload.

Maybe you will want to get that fixed at some point.


XenForo developer
Staff member
This is expected. It encodes accented characters unless you do romanization (second argument), which then guarantees it will only return a-z, 0-9, _ and -.