[GH-ISSUE #3202] [GUI] Strata path encoding breaks on Windows 11 Russian localization (Mojibake and question marks in UI/model loading) #1298

Closed
opened 2026-11-04 01:50:09 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @almirus on GitHub (Oct 19, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3202

There is a critical path resolution and encoding issue on Windows 11 with Russian localization when user folders are managed by OneDrive. Strata fails to handle localized Cyrillic paths properly, breaking both folder creation and model loading.

Image
  1. Folder creation issue: Instead of using the local execution path, the application attempts to prepare data in a corrupted legacy path with Mojibake characters:
    C:\Documents and Settings\RobotComp\OneDrive\ 㬥 \Strata
  2. UI & Model loading issue: Inside the application Settings, when Strata actually tries to load the model, the path encoding breaks even further. The Chinese characters change into question marks (???), making the model completely inaccessible and preventing it from loading.
    What causes this:
    • Encoding Mismatch: The Chinese character 㬥 appears because the Russian system folder name "Документы" (Documents) in ANSI/CP1251 gets incorrectly interpreted as UTF-8.
    • Question Marks (???): When the application subsequently attempts to read or display this invalid path during model loading, the fallback text processing replaces the unmappable characters with literal question marks, breaking the file handler.
    • Environment: This behavior is highly specific to Windows 11 systems running strict Russian locale settings combined with OneDrive synchronization.
    Environment:
    • OS: Windows 11 (Pure Russian localization)
    • Hardware: NVIDIA GeForce RTX 5060 Ti (16 GB VRAM), 32 GB RAM
    • Model used: IQ3_S (Downloaded locally at C:\Users\RobotComp\Strata\Models\IQ3_S, but failing to prepare)
    Steps to reproduce:
  3. Use a Windows 11 PC with Russian system locale and active OneDrive backup for the "Documents" folder.
  4. Launch Strata and attempt to point it to or load the local model.
  5. Observe the 㬥 characters in the generated filesystem path, which then turn into question marks (???) in the settings/logs when model loading is initiated.
    Suggested fix:
    Enforce strict Unicode/UTF-8 path translation across the entire Windows API boundary in the engine, and avoid using legacy Documents and Settings or localized cloud-synced folders by default.
Originally created by @almirus on GitHub (Oct 19, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3202 There is a critical path resolution and encoding issue on Windows 11 with Russian localization when user folders are managed by OneDrive. Strata fails to handle localized Cyrillic paths properly, breaking both folder creation and model loading. <img width="1037" height="522" alt="Image" src="https://github.com/user-attachments/assets/212af2c8-8f4e-45c2-9ca0-c92074bbed41" /> 1. Folder creation issue: Instead of using the local execution path, the application attempts to prepare data in a corrupted legacy path with Mojibake characters: C:\Documents and Settings\RobotComp\OneDrive\ 㬥 \Strata 2. UI & Model loading issue: Inside the application Settings, when Strata actually tries to load the model, the path encoding breaks even further. The Chinese characters change into question marks (???), making the model completely inaccessible and preventing it from loading. What causes this: • Encoding Mismatch: The Chinese character 㬥 appears because the Russian system folder name "Документы" (Documents) in ANSI/CP1251 gets incorrectly interpreted as UTF-8. • Question Marks (???): When the application subsequently attempts to read or display this invalid path during model loading, the fallback text processing replaces the unmappable characters with literal question marks, breaking the file handler. • Environment: This behavior is highly specific to Windows 11 systems running strict Russian locale settings combined with OneDrive synchronization. Environment: • OS: Windows 11 (Pure Russian localization) • Hardware: NVIDIA GeForce RTX 5060 Ti (16 GB VRAM), 32 GB RAM • Model used: IQ3_S (Downloaded locally at C:\Users\RobotComp\Strata\Models\IQ3_S, but failing to prepare) Steps to reproduce: 1. Use a Windows 11 PC with Russian system locale and active OneDrive backup for the "Documents" folder. 2. Launch Strata and attempt to point it to or load the local model. 3. Observe the 㬥 characters in the generated filesystem path, which then turn into question marks (???) in the settings/logs when model loading is initiated. Suggested fix: Enforce strict Unicode/UTF-8 path translation across the entire Windows API boundary in the engine, and avoid using legacy Documents and Settings or localized cloud-synced folders by default.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 19, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6273722938 --> @github-actions[bot] commented on GitHub (Oct 19, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@github-actions[bot] commented on GitHub (Oct 19, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6273843390 --> @github-actions[bot] commented on GitHub (Oct 19, 2026): Thanks, this follows the format now.
Author
Owner

@Niko1221 commented on GitHub (Oct 20, 2026):

Thank you, this was three separate things, and I could reproduce the first two. (1) Windows PowerShell writes to a pipe in the console's OEM code page (cp866 on a Russian Windows), and the app read it as UTF-8: the Documents folder lookup (and the save dialog, fonts and GPU names) came back as mojibake or question marks. Those calls now switch PowerShell to UTF-8 before anything is written; the test makes a folder with a Cyrillic name and checks it round-trips. (2) Python ran in the Windows code page: START-HERE.bat, bin\strata.cmd, strata.ps1 and every Python the app starts now run with PYTHONUTF8=1. (3) The engine (strata.exe, the picture reader) got its command line in the ANSI code page but reads paths as UTF-8, so a Cyrillic model folder arrived as other bytes, or as ??? where the page has no such letter. The executables now carry a UTF-8 manifest (Windows 10 1903 and newer): the command line and file opens are UTF-8. I checked the manifest with a small test program (the command line is "???" without it, the right UTF-8 bytes with it); I could not run the engine itself on a Russian-localized Windows, so a retest on yours would help. The odd "C:\Documents and Settings" part of your path I could not explain from the code: if it shows again after the update, please send the log line that names it.

This is in Strata 0.2.1: https://github.com/Niko1221/Strata/releases/tag/v0.2.1

<!-- gh-comment-id:6286733922 --> @Niko1221 commented on GitHub (Oct 20, 2026): Thank you, this was three separate things, and I could reproduce the first two. (1) Windows PowerShell writes to a pipe in the console's OEM code page (cp866 on a Russian Windows), and the app read it as UTF-8: the Documents folder lookup (and the save dialog, fonts and GPU names) came back as mojibake or question marks. Those calls now switch PowerShell to UTF-8 before anything is written; the test makes a folder with a Cyrillic name and checks it round-trips. (2) Python ran in the Windows code page: START-HERE.bat, bin\strata.cmd, strata.ps1 and every Python the app starts now run with PYTHONUTF8=1. (3) The engine (strata.exe, the picture reader) got its command line in the ANSI code page but reads paths as UTF-8, so a Cyrillic model folder arrived as other bytes, or as ??? where the page has no such letter. The executables now carry a UTF-8 manifest (Windows 10 1903 and newer): the command line and file opens are UTF-8. I checked the manifest with a small test program (the command line is "???" without it, the right UTF-8 bytes with it); I could not run the engine itself on a Russian-localized Windows, so a retest on yours would help. The odd "C:\Documents and Settings" part of your path I could not explain from the code: if it shows again after the update, please send the log line that names it. This is in Strata 0.2.1: https://github.com/Niko1221/Strata/releases/tag/v0.2.1
Author
Owner

@Niko1221 commented on GitHub (Oct 24, 2026):

This is fixed in Strata 0.2.1. Please update to the latest release (in the Terminal: strata update; in the app: download the newest installer from the releases page). If it still happens on the latest version, reply here and we will reopen it. Thank you for the report.

<!-- gh-comment-id:6383458663 --> @Niko1221 commented on GitHub (Oct 24, 2026): This is fixed in Strata 0.2.1. Please update to the latest release (in the Terminal: `strata update`; in the app: download the newest installer from the releases page). If it still happens on the latest version, reply here and we will reopen it. Thank you for the report.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1298
No description provided.