Cyrillic Filenames Saved as ????? When Exported to Text File and Opened in Notepad

English support forum

Moderators: Stefan2, Hacker, petermad

Post Reply
ko42
Junior Member
Junior Member
Posts: 26
Joined: 2022-05-21, 20:29 UTC

Cyrillic Filenames Saved as ????? When Exported to Text File and Opened in Notepad

Post by *ko42 »

When generating a list of filenames into a text file (notepad %f thru start menu), filenames containing Cyrillic characters are displayed as ????? when opened in Notepad.
Win 11 english. So i don't have any cyrillic default settings or something. But i can read in any app cyrillic. It seems TC sends to notepad incorrect names. Please how can i fix it?
User avatar
Gral
Power Member
Power Member
Posts: 1785
Joined: 2005-01-26, 15:12 UTC

Re: Cyrillic Filenames Saved as ????? When Exported to Text File and Opened in Notepad

Post by *Gral »

Use %UF or %WF instead
User avatar
petermad
Power Member
Power Member
Posts: 17375
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Cyrillic Filenames Saved as ????? When Exported to Text File and Opened in Notepad

Post by *petermad »

2ko42
%f thru start menu
Also notice that %f gives you the short (8.3) filenames - unlike %F
License #524 1994
Danish TC Translator
TC 11.58 32+64bit on Windows XP 32bit & Windows 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1416b
TC 3.62 on Android 6, 13, 15 & 16
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Fla$her
Power Member
Power Member
Posts: 4033
Joined: 2020-01-18, 04:03 UTC

Re: Cyrillic Filenames Saved as ????? When Exported to Text File and Opened in Notepad

Post by *Fla$her »

ko42 wrote: 2026-02-22, 23:52 UTC notepad %f
Win 11 english
In such a combination, this is quite acceptable, because after 127 characters, the characters are taken from the English code page 1252, replacing the characters with those corresponding to it. And since modern notepad uses UTF-8 encoding by default, rather than ANSI, the characters when using %f are also converted to unreadable form.
Therefore, you'll either have to change the program language in the regional settings to your native one and set the default encoding for notepad to ANSI, or use %UF immediately for UTF-8 compatibility.
Overquoting is evil! 👎
ko42
Junior Member
Junior Member
Posts: 26
Joined: 2022-05-21, 20:29 UTC

Re: Cyrillic Filenames Saved as ????? When Exported to Text File and Opened in Notepad

Post by *ko42 »

Gral wrote: 2026-02-23, 01:48 UTC Use %UF or %WF instead
Thanks! It works!
Post Reply