Ticket #17 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Problem with danish letter æ, ø, å

Reported by: Jacob Loeve Owned by: anti
Priority: normal Milestone:
Component: Administration Version: 1.0b1
Severity: normal Keywords: Danish letters
Cc:

Description

If you try and [Import] files from the "uploads" directory on the ftp server that contains any of the 3 danish letters (æ, ø, å), then it does not work under the [import]-tag in the admin section. What happens is that it shows all the file-names under the [import]-tag, but does not show the picture - only the place holder. If you then choose an album and import, then everywhere you go - whether it is the plogger-album view or the manage-section under admin, you will only see place holders, and not the actual pictures.

Change History

Changed 3 years ago by anti

  • owner changed from mike to anti

Changed 3 years ago by anti

  • status changed from new to assigned

Changed 3 years ago by anti

I've been investating this. The root of the problem lies in the fact that the charset of the webpage and that of the filesystem are different and there is no way to tell what character set is used by the filesystem.

I can implement a workaround, but that means removing international characters from filenames when moving them from upload directory to album.

jæcob.jpg would become j_cob.jpg, brå.jpg becomes br_.jpg and so on.

I looked at gallery and it does the same thing. For example: http://album.varulane.pri.ee/ps05/Duke_on_stage_P_rnu_15_07_05 (and yes, it's me :) )

Do you guys think I should implement the same approach for Plogger or do you have better suggestions?

Changed 3 years ago by anti

I think this should be fixed too now with changeset 106.

Jacob, can you try it out again please?

Changed 3 years ago by anti

There is 1 remaining problem, international characters are still shown wrong, because the interface is using UTF-8, importing still works though.

Perhaps I can use iconv (if it is installed) to resolve this.

Changed 3 years ago by anti

  • status changed from assigned to closed
  • resolution set to fixed

It's impossible to show the correct characters in the interface. For this to work properly I need to know what encoding is used by the filesystem and as far as I can tell this is impossible.

So - if you use UTF-8 in filenames, then everything looks fine, if you use something else then you get some gibberish but it really cannot be helped :(

Since the original problem described in this ticket is now fixed I'm closing the bug

Note: See TracTickets for help on using tickets.