Commit dbe60c0
committed
fix: resolve Windows Unicode encoding errors in CI workflow verification scripts
**Unicode Encoding Fixes:**
- Replace Unicode emojis with ASCII alternatives in CI verification scripts to prevent Windows console encoding errors
- Add PYTHONIOENCODING=utf-8 environment variable to all Python steps for proper Unicode handling
- Fix UnicodeEncodeError: 'charmap' codec can't encode character '\u2705' on Windows Server
**Specific Changes:**
1. Build Python extension verification script:
- Replace (U+2705) with [OK] for success messages
- Replace (U+274C) with [ERROR] for error messages
- Replace (U+26A0) with [WARN] for warning messages
2. Fallback test verification:
- Replace with [OK] in success message
3. Environment variable additions:
- Add PYTHONIOENCODING=utf-8 to Build Python extension step
- Add PYTHONIOENCODING=utf-8 to Run Python tests step
- Add PYTHONIOENCODING=utf-8 to Test pure Python fallback step
- Add PYTHONIOENCODING=utf-8 to Run integration tests step
**Cross-Platform Compatibility:**
- ASCII alternatives work on all platforms (Ubuntu, Windows, macOS)
- UTF-8 encoding ensures Unicode characters in integration tests display correctly
- Maintains clear status reporting while preventing encoding errors
- Preserves all verification functionality
**Verification:**
- Local testing confirms ASCII alternatives work correctly on Windows
- UTF-8 encoding allows integration test script to run without Unicode errors
- All verification scripts maintain same functionality with improved compatibility
**Root Cause:** Windows console uses cp1252 encoding by default, which cannot display Unicode emoji characters ( U+2705, U+274C, U+26A0) used in verification scripts.
**Solution:** Dual approach - ASCII alternatives for inline scripts + UTF-8 encoding environment variable for external scripts that use Unicode characters.1 parent 8a7e862 commit dbe60c0
1 file changed
Lines changed: 14 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
| 175 | + | |
174 | 176 | | |
175 | 177 | | |
176 | 178 | | |
| |||
180 | 182 | | |
181 | 183 | | |
182 | 184 | | |
183 | | - | |
| 185 | + | |
184 | 186 | | |
185 | 187 | | |
186 | 188 | | |
187 | 189 | | |
188 | | - | |
| 190 | + | |
189 | 191 | | |
190 | | - | |
| 192 | + | |
191 | 193 | | |
192 | | - | |
| 194 | + | |
193 | 195 | | |
194 | | - | |
| 196 | + | |
195 | 197 | | |
196 | 198 | | |
197 | 199 | | |
198 | 200 | | |
199 | 201 | | |
| 202 | + | |
| 203 | + | |
200 | 204 | | |
201 | 205 | | |
202 | 206 | | |
203 | 207 | | |
204 | 208 | | |
205 | 209 | | |
| 210 | + | |
| 211 | + | |
206 | 212 | | |
207 | 213 | | |
208 | 214 | | |
| |||
227 | 233 | | |
228 | 234 | | |
229 | 235 | | |
230 | | - | |
| 236 | + | |
231 | 237 | | |
232 | 238 | | |
233 | 239 | | |
234 | 240 | | |
| 241 | + | |
| 242 | + | |
235 | 243 | | |
236 | 244 | | |
237 | 245 | | |
0 commit comments