SimpleMobileTools / Simple-Calendar

A simple calendar with events, tasks, customizable colors, widgets and no ads.
https://www.simplemobiletools.com
GNU General Public License v3.0
3.53k stars 1.15k forks source link

CJK Unified Ideographs Extension A Characters not Recognized #2292

Open Vinfall opened 9 months ago

Vinfall commented 9 months ago

What happened

Some CJK characters located in CJK Unified Ideographs Extension are not recognized by Simple Calendar and instead shows only a blank space. This happens in both subscribed CalDAV calendar and locally imported ICS file.

Versions

Expected result & steps to reproduce

  1. Have the ICS file somewhere (you can use https://raw.githubusercontent.com/Vinfall/SteamWishlistCalendar/c7c280fc6acefb3219e3fbf0f0ca1b33a01712cb/output/wishlist.ics to test)
  2. Subscribe it in ICSx5 and sync to Simple Calendar (or alternatively, download & import the ICS file in Simple Calendar settings)
  3. Check the event on 2023-12-29 and it should be titled 𣸩 (as seen in https://github.com/Vinfall/SteamWishlistCalendar/blob/c7c280fc6acefb3219e3fbf0f0ca1b33a01712cb/output/wishlist.ics#L25)
  4. Actually, it shows a blank space

Suggested fix

The character itself is located in CJK Unified Ideographs Extension A, so extend the Unicode region to it should solve the issue. IDK, probably \u{20000}-\u{2ffff}? It's better to extend to somewhere like CJK Unified Ideographs Extension H (\u{20000}-\\u{323af}?) once for all IMO.

inson1 commented 9 months ago

@Vinfall SMT apps were sold to ad company. Fork is here https://github.com/FossifyOrg