Page 1 of 1

Cannot open a file if filename contains Unicode characters

Posted: 2008-01-03T16:40:15-07:00
by erhhung
I am using ImageMagick (6.3.6 Q8) on an English version of Windows (2003) and I'm having problems reading image files (using IMDisplay, convert.exe, etc.) if the filename contains non-Latin characters (Chinese). For example, I double-click on a file called "apple.jpg" and IMDisplay shows the image just fine. If I copy that file and give it the name "圖片.jpg", and then double-click on it again, IMDisplay shows the error dialog with the message "C:\Media\Images\??.jpg contains an invalid path."

I also run convert.exe through an application that launches the convert.exe process with filename arguments, and if the input filename contains Unicode characters, I also get an error "convert.exe: missing an image filename ..."

Re: Cannot open a file if filename contains Unicode characters

Posted: 2008-01-03T16:59:35-07:00
by magick
We improved Unicode support in the latest ImageMagick release (6.3.7-8). If that still fails for you try recoding your filename into UTF-8.

Re: Cannot open a file if filename contains Unicode characters

Posted: 2008-01-04T14:23:13-07:00
by jmunin
Hello:

As i comment in the next reply http://imagemagick.org/discourse-server ... =1&t=10342
i have the same problem (using IM 6.3.7-8 with winXp sp2).

And exactly, if i rename españa.gif by espana.gif, or camión.jpg by camion.jpg, solved problem.

But in spain (and other countries), tildes (áéíóú) or Ñ characters are very usual (by example). it's supposed that utf-16 introduction (winxp case) maked possible to use this characters without problems. So, i can't rename all my file names (and file names of others); without (any) intention of offending. ;-)

I beg you other solution, please

Best regards

Re: Cannot open a file if filename contains Unicode characters

Posted: 2008-01-22T16:22:01-07:00
by jmunin
Hello,

A forum user suggest to me try with a previous versions of imagemagick.

I got ImageMagick-5.5.7-Q8-windows-dll, and i tried the example codes with this version, using vista home basic and win xp sp2 (both spanish versions), and works fine!!

this way, i tried with the last version ImageMagick-6.3.8-0-Q8-windows-dll, but fail again (sames errors). Any suggestion?

Thanks for your effort.

Best regards

Re: Cannot open a file if filename contains Unicode characters

Posted: 2008-02-01T17:10:32-07:00
by jmunin
Hello,

I'm just finished to try the last version of imagemagick:

ImageMagick-6.3.8-2-Q8-windows-dll.exe

and at last it works with non-ascii filenames!!

For example:

convert logo: ñó#á.miff

works fine!

Thanks a lot for your support.

Best regards

Re: Cannot open a file if filename contains Unicode characte

Posted: 2011-01-26T03:30:23-07:00
by gromas
Hi!

Now I install ImageMagick-6.6.7-Q8 and have same problem with Russian characters on Windows XP SP3.
Can anyone help me to resolve this bug?

Thanks,
Roman.