Problem with Character ✔ (u2714) and no error message

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

Moderators: XnTriq, helmut, xnview

xinni
Posts: 6
Joined: Sat May 04, 2024 1:16 pm

Problem with Character ✔ (u2714) and no error message

Post by xinni »

Hello,

if I have this character ✔ in foldernames, nconvert refuses to work:

Code: Select all

C:\Users\user\AppData\Local\Temp>C:\NConvert\nconvert.exe -v -negate "C:\#test\Test ✔\test.jpg"
** NCONVERT v7.172 (c) 1991-2024 Pierre-E Gougelet (Feb 19 2024/14:50:40) **
        Version for Windows 7/8/10/11 x64  (All rights reserved)
** This is freeware software (for non-commercial use)

##########################Files opened: 0
Files written: 0
nconvert does not even show an error, which it does when entering a path without special charater, but with a non-exsiting-filename, like here:

Code: Select all

C:\Users\user\AppData\Local\Temp>C:\NConvert\nconvert.exe -v -negate "C:\#test\Test\no_existing_file.jpg"
** NCONVERT v7.172 (c) 1991-2024 Pierre-E Gougelet (Feb 19 2024/14:50:40) **
        Version for Windows 7/8/10/11 x64  (All rights reserved)
** This is freeware software (for non-commercial use)

  Error: Can't open file (C:\#test\Test\no_existing_file.jpg)

##########################Files opened: 0
Files with open error: 1
Files written: 0

while nconvert works nicely without that (or other very special) character:

Code: Select all

C:\Users\user\AppData\Local\Temp>C:\NConvert\nconvert.exe -v -negate "C:\#test\Test\test.jpg"
** NCONVERT v7.172 (c) 1991-2024 Pierre-E Gougelet (Feb 19 2024/14:50:40) **
        Version for Windows 7/8/10/11 x64  (All rights reserved)
** This is freeware software (for non-commercial use)

A JPEG TrueColor (v1.1) (RGB) - JPEG was recognized : C:\#test\Test\test.jpg
    Width:1000 Height:374 with 16777216 colors
    Nplanes : 1      Bitscount : 24
    Bytes Per Plane : 3000
    xdpi : 72         ydpi : 72
Negating : OK
Conversion of C:\#test\Test\test.jpg into C:\#test\Test\test_1.jpg OK

##########################Files opened: 1
Files written: 1
I tried several things, like "escaping" that character with "\u2714" but it did not help.

Also, I can't take care of all special characters before the batch run, because normally, I don't own the folders.

How can I make nconvert work with spacial characters?

Thank you.
User avatar
xnview
Author of XnView
Posts: 44473
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Problem with Character ✔ (u2714) and no error message

Post by xnview »

do you have tried in powershell?
Pierre.
xinni
Posts: 6
Joined: Sat May 04, 2024 1:16 pm

Re: Problem with Character ✔ (u2714) and no error message

Post by xinni »

xnview wrote: Fri Jun 21, 2024 9:16 am do you have tried in powershell?
Thank you,

just tried it, same result:

does not work with special character:

Code: Select all

Windows PowerShell
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

Installieren Sie die neueste PowerShell für neue Funktionen und Verbesserungen! https://aka.ms/PSWindows

PS C:\#test> dir


    Verzeichnis: C:\#test


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----        21.06.2024     13:11                Test
d-----        21.06.2024     13:11                Test ✔


PS C:\#test> C:\NConvert\nconvert.exe -v -negate "C:\#test\Test ✔\test.jpg"
** NCONVERT v7.172 (c) 1991-2024 Pierre-E Gougelet (Feb 19 2024/14:50:40) **
        Version for Windows 7/8/10/11 x64  (All rights reserved)
** This is freeware software (for non-commercial use)

##########################Files opened: 0
Files written: 0
PS C:\#test>

does work without special character:

Code: Select all

PS C:\#test> C:\NConvert\nconvert.exe -v -negate "C:\#test\Test\test.jpg"
** NCONVERT v7.172 (c) 1991-2024 Pierre-E Gougelet (Feb 19 2024/14:50:40) **
        Version for Windows 7/8/10/11 x64  (All rights reserved)
** This is freeware software (for non-commercial use)

A JPEG TrueColor (v1.2) (RGB) - JPEG was recognized : C:\#test\Test\test.jpg
    Width:425 Height:319 with 16777216 colors
    Nplanes : 1      Bitscount : 24
    Bytes Per Plane : 1275
    xdpi : 72         ydpi : 72
Negating : OK
Conversion of C:\#test\Test\test.jpg into C:\#test\Test\test_1.jpg OK

##########################Files opened: 1
Files written: 1
PS C:\#test>
User avatar
xnview
Author of XnView
Posts: 44473
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Problem with Character ✔ (u2714) and no error message

Post by xnview »

do you use the unicode version?
Pierre.
xinni
Posts: 6
Joined: Sat May 04, 2024 1:16 pm

Re: Problem with Character ✔ (u2714) and no error message

Post by xinni »

xnview wrote: Fri Jun 21, 2024 3:34 pm do you use the unicode version?
Wonderful, thank you very much!
I was completely unaware that in 2024 we still need two different versions to handle special characters. ;-D
I remember, back in the days, there were unicode and ansi....

Wonderful, thank you very much. It worked. However, I couldn't find a Unicode version for download on the website.
Where can I find this Unicode version for Mac and Linux?

Again, thank you very much!
User avatar
xnview
Author of XnView
Posts: 44473
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Problem with Character ✔ (u2714) and no error message

Post by xnview »

xinni wrote: Sat Jun 22, 2024 3:01 pm Wonderful, thank you very much. It worked. However, I couldn't find a Unicode version for download on the website.
Where can I find this Unicode version for Mac and Linux?
the windows unicode version is always in test. On MacOS & Linux, utf8 is used
Pierre.