WhisperSubTranslate v1.3.2 fixes a critical bug that caused subtitle extraction to fail when file paths contained Chinese, Japanese, or Korean characters. This update also adds Persian (Farsi) as the 14th translation target language.
- Unicode Path Fix - Files with CJK characters in path/filename now work correctly
- Persian Language - Added as 14th translation target language
- Log Auto-Cleanup - Automatic log file management (2MB limit)
Unicode Path Bug Fix
Users reported that files in folders with Chinese, Japanese, or Korean names would fail during subtitle extraction. The log showed filenames being corrupted to question marks (???).
Root Cause
The issue was in how Node.js passes Unicode paths to external processes on Windows. When spawning whisper-cli.exe, UTF-8 encoded paths with CJK characters were being corrupted during the encoding conversion.
The Solution: Safe Temp + Copy Pattern
v1.3.2 implements a "Safe Temp + Copy" pattern that automatically handles non-ASCII paths:
1. Detect Non-ASCII
Automatically detects if file path contains non-ASCII characters (Chinese, Japanese, Korean, etc.)
2. Copy to Safe Temp
Copies the file to a temporary directory with ASCII-safe path for processing.
3. Process & Return
Processes the file normally, then copies the result back to the original location.
Persian Language Support
Persian (Farsi) is now available as a translation target language. This was a community-requested feature.
| Translation Engine | Persian Support |
|---|---|
| MyMemory (Free) | ✓ Supported |
| OpenAI GPT | ✓ Supported |
| Google Gemini | ✓ Supported |
| DeepL | ✗ Not Supported |
Note: When DeepL is selected as the translation engine, Persian will be automatically disabled in the language dropdown since DeepL does not support Persian translation.
Log Auto-Cleanup
Translation error logs now have automatic size management to prevent unlimited growth:
- Size Limit: 2MB maximum file size
- Line Retention: Keeps the most recent 1,000 lines when cleanup triggers
- Automatic: Runs automatically, no user action needed
How to Update
- Download v1.3.2 from Releases
- Extract and replace your existing installation
- Your settings, API keys, and models are preserved
Thank you for your bug reports and feature requests! They help make WhisperSubTranslate better for everyone.