Problems with folder name encoding

English support forum

Moderators: Stefan2, white, sheep, Hacker

Post Reply
Glivi
Junior Member
Junior Member
Posts: 2
Joined: 2019-04-16, 07:34 UTC

Problems with folder name encoding

Post by *Glivi » 2019-04-16, 07:50 UTC

Hi. So here is my problem:

- I create a folder in TC containing some accented characters in the folder name, like "C:\Data\řřř".
- I copy a file "example.jpg" into the folder "řřř".
- I try to open the file in Irfanview and get the error "Unknown file format, empty/damaged file or file not found!"

Notes:
- IrfanView shows the path where it attempts to open the file as "C:\Data\rrr\example.jpg" (so with stripped accents)
- the same error appears when I try to open the file in IrfanViev in any other way (from windows file explorer, from the IrfanView menu)
- the error does NOT appear when I change the name of the folder to "rrr"
- the error does NOT appear when I create the folder "C:\Data\řřř" in windows explorer
- the error does NOT appear when I open the file in another program (GIMP)

Thanks for any help.

User avatar
MVV
Power Member
Power Member
Posts: 8240
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: Problems with folder name encoding

Post by *MVV » 2019-04-16, 09:16 UTC

So it perfectly seems that problem is with your IrfanView, most probably it simply doesn't support Unicode. Which IrfanView version do you use? Try updating it.

Glivi
Junior Member
Junior Member
Posts: 2
Joined: 2019-04-16, 07:34 UTC

Re: Problems with folder name encoding

Post by *Glivi » 2019-04-16, 09:29 UTC

MVV wrote:
2019-04-16, 09:16 UTC
So it perfectly seems that problem is with your IrfanView, most probably it simply doesn't support Unicode. Which IrfanView version do you use? Try updating it.
The problem is not only with IrfanView. For example with Zoner I have the same issue. Generally, half of my programs have problems opening from an accent-named folder and the other half don't.

And both IrfanView and Zoner work fine, if I create or rename the folder "řřř" in Windows File Explorer.

I am using IrfanView 64 4.42.

User avatar
tuska
Power Member
Power Member
Posts: 1454
Joined: 2007-05-21, 12:17 UTC

Re: Problems with folder name encoding

Post by *tuska » 2019-04-16, 09:44 UTC

https://www.irfanview.com/history_old.htm
Unicode is supported starting with version 4.50...

Current version is 4.52: https://www.irfanview.com/

User avatar
petermad
Power Member
Power Member
Posts: 8298
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: Problems with folder name encoding

Post by *petermad » 2019-04-16, 15:33 UTC

"C:\Data\řřř" made in TC works fine here with:
IrfanView v. 4.52
XnView MP v. 0.93.1
Imagine v. 1.1.0

It does not work in XnView Classic v. 2.48 even though unicode should be supported as from v. 2.41 interesting enough it works with "C:\Data\ššš"
License #524 (1994)
Danish Total Commander Translator
TC 9.22a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit, 'Everything' 1.4.1.935 (x64) and TC 3.0b3 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

User avatar
Usher
Senior Member
Senior Member
Posts: 318
Joined: 2011-03-11, 10:11 UTC

Re: Problems with folder name encoding

Post by *Usher » 2019-04-16, 16:14 UTC

2Glivi
There may still be problems with plug-ins used by image viewers, so you should report them to the devs of those viewers/plug-ins.
Regards from Poland
Andrzej P. Wozniak

User avatar
Hacker
Moderator
Moderator
Posts: 11185
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Problems with folder name encoding

Post by *Hacker » 2019-04-16, 20:55 UTC

Just out of curiosity, what is your language for non-unicode programs? Ř is not really used outside Czech and some exotic Upper Sorbian languages.
https://www.wikiwand.com/en/%C5%98

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.

User avatar
Dalai
Power Member
Power Member
Posts: 6509
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Problems with folder name encoding

Post by *Dalai » 2019-04-16, 21:14 UTC

tuska wrote:
2019-04-16, 09:44 UTC
https://www.irfanview.com/history_old.htm
Unicode is supported starting with version 4.50...
Even older versions support Unicode in file names, but it has to be enabled manually (I'm still using 4.38). See Options > Change language > [ ] Load Unicode plug-in at startup (for filenames with non-latin characters). Note that enabling this option causes some side-effects, e.g. scrambled umlauts in the File type and Recent folders drop-downs of Open/Save dialogs.

Regards
Dalai
#101164 Personal licence
Athlon X4 880K, 16 GiB RAM, Gigabyte F2A88X-D3HP, Win7 x64

Plugins: Services2, Startups

User avatar
j7n
Member
Member
Posts: 149
Joined: 2005-08-07, 21:56 UTC

Re: Problems with folder name encoding

Post by *j7n » 2019-04-16, 21:55 UTC

The 64-bit version didn't have a Unicode plugin.

I tried opening various names including "řřř" (r with combining caron) in IrfanView 4.51 and there were no problems. Windows is surprisingly intelligent in stripping off the accents for older programs, but that doesn't allow access to files with special names, unless a folder called "rrr" also exists. "š" would work for most people, as it is present in Western, Central European and Baltic codepages.

Recent versions of IrfanView look and work mostly the same, so I don't see any downsides to updating, because other language symbols (or the nasty combining diacritics) are encountered often enough in downloaded files.
#148174 Personal license
Running Total Commander v8.52a

User avatar
Usher
Senior Member
Senior Member
Posts: 318
Joined: 2011-03-11, 10:11 UTC

Re: Problems with folder name encoding

Post by *Usher » 2019-04-16, 23:26 UTC

j7n wrote:
2019-04-16, 21:55 UTC
The 64-bit version didn't have a Unicode plugin.
I'm afraid you didn't understand my info. IrfanView 64-bit may be fully Unicode with its own 64-bit plug-ins, but there are more 32-bit plug-ins available. Some of them aren't fully Unicode, some of them are abandoned and have no good replacement so far. If any people use such plug-ins, they probably have to live with 32-bit IrfanView and its limitations.
Regards from Poland
Andrzej P. Wozniak

User avatar
j7n
Member
Member
Posts: 149
Joined: 2005-08-07, 21:56 UTC

Re: Problems with folder name encoding

Post by *j7n » 2019-04-17, 00:43 UTC

The OP said that he was running "IrfanView 64", and so would have the plugin. 32-bit is now Unicode-capable, and a good choice.
#148174 Personal license
Running Total Commander v8.52a

User avatar
Usher
Senior Member
Senior Member
Posts: 318
Joined: 2011-03-11, 10:11 UTC

Re: Problems with folder name encoding

Post by *Usher » 2019-04-17, 13:28 UTC

2j7n

Once again: Your observations may be good enough in a single case, but not in general.
As you don't know for sure which user will read this topic in the future, I put a GENERAL WARNING for all of them:

Some plug-ins are available only in old 32-bit, non-Unicode version, with no possibility to update, port or replace them.
if you use such plug-ins you may have problems, no matter what other users say.


Note: Unicode support doesn't mean only that you can use Russian names in Russian Windows. It means much more - you can use Russian names in Polish Windows or Chinese names in Russian Windows.
Regards from Poland
Andrzej P. Wozniak

Post Reply