opensourcecheemsburgers / RustyTube

A rusty Youtube client.
GNU Affero General Public License v3.0
578 stars 31 forks source link

Non Latin characters do not display properly #15

Closed opensourcecheemsburgers closed 8 months ago

opensourcecheemsburgers commented 9 months ago

For example, inputting the following text into the search bar:

雷霆

Returns suggestions like:

雷霆加速器

This can be fixed by adding fonts which support these characters.

cornerot commented 8 months ago

Screenshot

2024-02-09T15:54:22,257275794+03:00

opensourcecheemsburgers commented 8 months ago

It seems to only be a problem for search bar suggestions.

Pressing the search button with non-Latin characters entered will still return the correct results.

opensourcecheemsburgers commented 8 months ago

Upon closer inspection, Invidious actually responds with these html entities.

For example: https://invidious.protokolla.fi/api/v1/search/suggestions?q=小野正利

{
  "query": "小野正利",
  "suggestions": [
    "小野正利",
    "小野正利 forever love",
    "小野正利 愛をとりもどせ",
    "小野正利 forever my love",
    "小野正利 红",
    "小野正利 モニタリング 爱をとりもどせ",
    "小野正利 departure",
    "小野正利 you're the only・・・",
    "小野正利 いつのまにか君を",
    "小野正利 destiny",
    "小野正利 猎人",
    "小野正利 祈 歌詞",
    "小野正利 cover"
  ]
}

Fixed in commit bdb1e98.