Commit 13652a1
Yaohua-Leo
fix(exec): default to GBK encoding on Windows (#50519)
- On Windows, cmd.exe outputs in GBK/CP936 by default, not UTF-8
- Changed default encoding from UTF-8 to GBK for Windows platform
- Added encoding option to allow override when needed
- This fixes garbled Chinese characters in exec tool output on Windows
Fixes #505191 parent 003ca01 commit 13652a1
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
104 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
105 | 110 | | |
106 | 111 | | |
107 | | - | |
| 112 | + | |
108 | 113 | | |
109 | 114 | | |
110 | 115 | | |
111 | 116 | | |
112 | | - | |
| 117 | + | |
113 | 118 | | |
114 | 119 | | |
115 | 120 | | |
| |||
0 commit comments