mitm/utf8_test.bat

28 lines
811 B
Batchfile

@echo off
REM UTF-8 Console Test Script
REM Set console to UTF-8 encoding to prevent garbled text on Chinese Windows systems
chcp 65001 >nul 2>&1
echo ========================================
echo UTF-8 Console Encoding Test
echo ========================================
echo.
echo Testing Unicode characters:
echo English: Hello World
echo Chinese: 你好世界
echo Japanese: こんにちは世界
echo Korean: 안녕하세요 세계
echo Symbols: ✓ ✗ ★ ♥ ◆ ▲
echo.
echo If you can see the above characters correctly,
echo UTF-8 encoding is working properly.
echo.
echo ========================================
echo Testing MITM Proxy UTF-8 Output
echo ========================================
echo.
echo Building and running a quick test...
go run -ldflags="-X main.testMode=true" .
echo.
pause