Commit d5e836d
committed
fix: use toUtf8() instead of toLatin1() for tr() calls
Fix Chinese character corruption in translation lookup by using
UTF-8 encoding instead of Latin-1 which cannot handle non-ASCII chars.
修复翻译查找中因Latin-1编码导致中文字符变为问号的问题,改用UTF-8编码。
Log: 修复中文界面下处理器表头显示问号的问题
PMS: BUG-351713
Influence: 修复translateStr()和getTableHeader()两处toLatin1()调用,
确保中文等非ASCII字符在翻译查找时正确保留,影响所有设备信息的中文显示。1 parent 45b3cf6 commit d5e836d
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
0 commit comments