Improve emoji parsing in video titles
jsnmrs opened this issue · comments
Emojis in video titles are causing some issues. It appears that everything after an emoji is being stripped out of title.
https://bmxfeed.com/video/eOnkPH3dQU8 loses it's title altogether. Spotted this via a Lighthouse scan that returned 97 out of 100 for accessibility due to the empty link.
Changing the DB charset and collation around (via https://stackoverflow.com/a/20681943) in #395 and doing the same on the production DB, the emojis are replaced with "?" instead of truncating the rest of the title:
This is good enough for now. My primary concern was videos that have empty titles (due to starting with emoji). That appears to be preventable with this configuration change.