Problem with unicode filenames

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderator: xnview

herb
Posts: 285
Joined: Sat Jul 18, 2009 3:19 pm

Problem with unicode filenames

Post by herb »

Hello Pierre,

On my Windows 10 system I work with Nconvert version 7.136 to convert images to *.jpg images.
Using filenames with unicode-characters I have seen the following problems for the following command:

Code: Select all

nconvert.exe -half_res -ignore_errors -thumb 1920 1920 -overwrite -out jpeg -o OUTPUTFILENAME-without-extension SOURCEFILE
For command with - e.g. a psd image
(1)
OUTPUTFILENAME-without-extension == images三山_1828_2_prvws - (all values seen inside debug)
with: 三山 == chinese characters 三山
the result is: Can't open file (F:\\Work_Eixm\\EIXMTEST\\images\011\116\161\134.psd)

(2)
OUTPUTFILENAME-without-extension == images\011\116\161\134_1828_1_prvws
with \011\116\161\134 == chinese characters 三山
the result is: Can't create file (C:\\Users\\herbert\\AppData\\Local\\Temp\\images??_1828_1_prvws.jpg)

Case (2) shows that Nconvert supports unicode filenames, because it could open the source-file.

My question now is: How to send unicode-characters to Nconvert?

Best regards
herb
User avatar
xnview
Author of XnView
Posts: 47372
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Problem with unicode filenames

Post by xnview »

I work on a version with unicode support, do you want to try it?
Pierre.
xinni
Posts: 16
Joined: Sat May 04, 2024 1:16 pm

Re: Problem with unicode filenames

Post by xinni »

Hello,

is there still an issue with unicode and nconvert?

Is seems, nconvert does or can not open a file with U+1F579 char.

Code: Select all

C:\test\NConvert\nconvert.exe -keepfiledate -size 256x256+0 -ratio -rtype lanczos -rflag decr -icc_ie -ignore_errors -overwrite -out jpeg -v "D:\test\Joystick 🕹 Test\testdatei.png"
** NCONVERT v7.230 (c) 1991-2026 Pierre-E Gougelet (Jan  9 2026/17:17:32) **
** This is freeware software (for non-commercial use)

##########################Files opened: 0
Files written: 0

IIRC, there was a time, where we could download a special unicode version of nconvert, but I can not find it on the download pages anymore. Which does not mean, it does not exist there 8-]
User avatar
xnview
Author of XnView
Posts: 47372
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Problem with unicode filenames

Post by xnview »

xinni wrote: Thu Jan 22, 2026 9:34 am is there still an issue with unicode and nconvert?
do you use the unicode version?
Pierre.
xinni
Posts: 16
Joined: Sat May 04, 2024 1:16 pm

Re: Problem with unicode filenames

Post by xinni »

xnview wrote: Thu Jan 22, 2026 3:30 pm do you use the unicode version?
If you don't know it, how would I know it?

Clearly, I assume, you are more able to recognize it in the snipped I provided.
cday
XnThusiast
Posts: 4494
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Problem with unicode filenames

Post by cday »

NConvert Unicode versions can be downloaded here along with other earlier versions... :D

And looking again, also on the NConvert forum new version announcement post.
xinni
Posts: 16
Joined: Sat May 04, 2024 1:16 pm

Re: Problem with unicode filenames

Post by xinni »

Thank you very much, those are the helpful Links!

So now I could test the unicode version v7.230.

Unfortunately, for an ordinary user like me, it's not possible to distinguish between normal and unicode version, because they have the same buggy output ;-)
Please, add something like "unicode version" to the output. That would be *very* beneficial for us:

Code: Select all

** NCONVERT v7.230 (c) 1991-2026 Pierre-E Gougelet (Jan  9 2026/17:18:59) UNICODE VERSION**
** This is freeware software (for non-commercial use)

Usage : nconvert.exe [options ...] file ...
     Type nconvert.exe -help, for more information



Now my results/examples:

I wrote a small script with utf+8 output, which says:

Code: Select all

NConverting File: C:\test\Joystick 🕹 Test\hello - yes, this is dog.jpg
nconvert output is as followning:

Code: Select all

Conversion of C:\test\Joystick ?? Test\hello - yes, this is dog.jpg into C:\test\Joystick ?? Test\hello - yes, this is dog.jpg OK
as well as

Code: Select all

NConverting File: C:\test\Joystick 🕹 Test\Björk Poster.jpg
nconvert output is as followning:

Code: Select all

Conversion of C:\test\Joystick ?? Test\Bj�rk Poster.jpg into C:\test\Joystick ?? Test\Bj�rk Poster.jpg OK
The conversion howsoever gladly works, but the output is "broken".

Thank you very much and happy nconverting!!