Commit d58d455
committed
fix(encoding): UTF-8 support for Croatian, Arabic, and European characters
- Set UTF-8 locale at application startup before any file I/O operations
- Fixed JSON file reading to properly handle UTF-8 encoding (search history)
- Set environment variables (LC_ALL, LANG) for proper locale handling
- Simplified search history file I/O (removed unnecessary fs::u8path for content)
Fixes issue where Croatian (č, ć, đ, š, ž) and Arabic characters displayed
as replacement characters (□) on PS4 and PC platforms. Characters now render
correctly in titles, descriptions, and search results.
Note: Font fallback for Arabic may need to be added separately if system
fonts don't support Arabic characters. The UTF-8 encoding fixes ensure
proper character parsing and display when fonts are available.
Tested on Linux desktop with Croatian content from Jellyfin server.1 parent b343948 commit d58d455
2 files changed
+1
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 15 | | |
26 | 16 | | |
27 | 17 | | |
| |||
101 | 91 | | |
102 | 92 | | |
103 | 93 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | 94 | | |
108 | | - | |
109 | 95 | | |
110 | 96 | | |
111 | 97 | | |
| |||
145 | 131 | | |
146 | 132 | | |
147 | 133 | | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | 134 | | |
152 | | - | |
153 | 135 | | |
154 | 136 | | |
155 | 137 | | |
| |||
0 commit comments