mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3202] [GUI] Strata path encoding breaks on Windows 11 Russian localization (Mojibake and question marks in UI/model loading) #1298
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1298
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
C:\Documents and Settings\RobotComp\OneDrive\ 㬥 \Strata
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:
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.
@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:
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
@github-actions[bot] commented on GitHub (Oct 19, 2026):
Thanks, this follows the format now.
@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
@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.