When importing images I encountered the following problem:

If an image with special characters in the file name (like german umlauts äüö or french accents éêè) is visible in the list of images to import, the import will fail. It is sufficient that the image is visible in the list, the import then also fails for all other images with "normal" file names.

Usually I would avoid special characters in filenames, but in this case the directory names are generated from album titles and these titles contain lots of umlauts.

Any ideas for a workaround that would still preserve the umlauts in Gallery names?

This is the somewhat unhepful error message that appears.

An error occurred. /drupal-6.13/?id=&op=do 

Following this error is the html code of my drupal start page.

Comments

joachim’s picture

Is this a duplicate of the more general problem here: #577876: Uploading Image Fails with Accented Filenames?

DoctorWho’s picture

I've worked around this issue by replacing the special characters in the directory and file names before importing.

The bug you linked to seems different, as I was using the image import module, not uploading within Drupal. I would have probably encountered this bug if the import module didn't fail first.

To me it seems the image_import module just does not support UTF-8 characters (or really anything other than plain ascii) in file names. I tried more or less randomly wrapping the relevant code in the image_import module in utf8-encoding functions, but in the end I did not succeed. I managed to get a few steps further, but it seemed to me that the whole module does not work with utf8-encoded filenames.

joachim’s picture

Status: Active » Postponed (maintainer needs more info)

Are you able to create a new image node with an umlaut file? If so, it's likely you're seeing #577876, just in a different place.

The 'An error occurred' thing I've seen recently in another image bug report, and it turned out to be a core problem. If you find the issue, there's a link to the core issue there.

sun’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

Thanks for taking the time to report this issue.

However, marking as duplicate of #577876: Uploading Image Fails with Accented Filenames. Please search for existing issues before submitting a new one.
You can follow up on that issue to track its status instead. If any information from this issue is missing in the other issue, please make sure you provide it over there.