SeNioR- Posted December 3, 2022 Share Posted December 3, 2022 (edited) Hi. seoTitle function currently does not remove Emoji from URLs. Link with emoji becomes unfriendly. Consider adding a new preg_replace $value = preg_replace('/[^ -\x{2122}]\s+|\s*[^ -\x{2122}]/u','',$value); The copied and pasted URL looks like this: https://invisioncommunity.com/forums/topic/470924-emoji-in-seotitle-unfriendly-url-%F0%9F%94%A5%F0%9F%98%85%F0%9F%98%B2%F0%9F%92%9B%F0%9F%A4%A9%F0%9F%A4%AE%F0%9F%98%8A/ Edited December 3, 2022 by SeNioR- Link to comment Share on other sites More sharing options...
Daniel F Posted December 3, 2022 Share Posted December 3, 2022 What browser are you using? I see it in the address bar and even the copied URL is https://invisioncommunity.com/forums/topic/470924-emoji-in-seotitle-unfriendly-url-🔥😅😲💛🤩🤮😊 Link to comment Share on other sites More sharing options...
teraßyte Posted December 4, 2022 Share Posted December 4, 2022 (edited) @Daniel F I made a test topic in the Test Posting forum so you can see the issue => https://invisioncommunity.com/forums/topic/470928-emoji-test-✂️%EF%B8%8F/ The topic title contains this text: Emoji test => ✂️ And the url in Chrome browser on Windows (107.0.5304.123) is: https://invisioncommunity.com/forums/topic/470928-emoji-test-✂️%EF%B8%8F/ Edited December 4, 2022 by teraßyte SeNioR- 1 Link to comment Share on other sites More sharing options...
opentype Posted December 4, 2022 Share Posted December 4, 2022 Emoji are just characters that happen to be displayed as a color image. Their encoding shouldn’t be treated differently. In fact, I wouldn’t even know how, since they do not even have a dedicated Unicode range. Some were matched to existing pictograms and every year new ones are being added. Maintaining a complete list of emoji to be removed from URLs would be quite cumbersome. 13. 1 Link to comment Share on other sites More sharing options...
SeNioR- Posted December 4, 2022 Author Share Posted December 4, 2022 3 hours ago, opentype said: Maintaining a complete list of emoji to be removed from URLs would be quite cumbersome. You can use a regex that selects the entire Emoji range. Link to comment Share on other sites More sharing options...
opentype Posted December 4, 2022 Share Posted December 4, 2022 As already said: Emojis are not limited to a specific Unicode range. Link to comment Share on other sites More sharing options...
Recommended Posts