I have MediaWiki installed and working on a Windows Server.
But I have a problem with images that have accented characters in the name.
This is what happens: 1. I upload a image with a special character, like: façade.gif 2. MediaWiki assumes this name: Façade.gif 3. In the file system, it is saved as: Façade.gif 4. In MediaWiki, in the details page for the image, the link is: http://pegasus/wiki/uploads/c/c1/Fa%C3%A7ade.gif 5. When I follow this link, I get HTTP Error 404
For images with only ASCII characters in the name, there is no problem.
Although I searched a lot, I couldn't find any information or post about this.
I'd appreciate any help. Thanks!
Which version of MediaWiki are you using?
There was a bug with filename encoding on windows servers in mediawiki-1.8.1. If you are using this version, you should upgrade to 1.8.2.
HTH chris
mediawiki-l-bounces@Wikimedia.org schrieb am 03.11.2006 10:40:05:
I have MediaWiki installed and working on a Windows Server.
But I have a problem with images that have accented characters in the
name.
This is what happens:
- I upload a image with a special character, like: façade.gif
- MediaWiki assumes this name: Façade.gif
- In the file system, it is saved as: Façade.gif
- In MediaWiki, in the details page for the image, the link is:
http://pegasus/wiki/uploads/c/c1/Fa%C3%A7ade.gif 5. When I follow this link, I get HTTP Error 404
For images with only ASCII characters in the name, there is no problem.
Although I searched a lot, I couldn't find any information or post about this.
I'd appreciate any help. Thanks! _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Thank you, but it is the latest version (1.8.2).
2006/11/3, christoph.huesler@css.ch christoph.huesler@css.ch:
Which version of MediaWiki are you using?
There was a bug with filename encoding on windows servers in mediawiki-1.8.1. If you are using this version, you should upgrade to 1.8.2.
HTH chris
Fernando Correia wrote:
I have MediaWiki installed and working on a Windows Server.
But I have a problem with images that have accented characters in the name.
That's known not to work on Windows servers due to the strange filesystem interface (at least under PHP).
Although Windows stores filenames in Unicode, the 8-bit character API used by most portable programs used a limited locale-specific encoding for filesystem operations, instead of UTF-8 as on other operating systems.
Thus the Unicode filenames that MediaWiki generates, and the Unicode filenames that your web server looks for when serving back the file don't match up. Files either won't get stored due to being invalid or you'll get 404 errors when trying to load them.
I don't know of a way to set the locale to UTF-8 on Windows (but good luck if you can find a way). You probably could work around it if you try a lot, or you can wait a few months for the new upload storage system which will give files portable, digest-based names.
-- brion vibber (brion @ pobox.com)
Thank you very much for the clarification. For now, I think I will settle for a warning to the users on the update page.
2006/11/3, Brion Vibber brion@pobox.com:
Fernando Correia wrote:
I have MediaWiki installed and working on a Windows Server.
But I have a problem with images that have accented characters in the
name.
That's known not to work on Windows servers due to the strange filesystem interface (at least under PHP).
Although Windows stores filenames in Unicode, the 8-bit character API used by most portable programs used a limited locale-specific encoding for filesystem operations, instead of UTF-8 as on other operating systems.
Thus the Unicode filenames that MediaWiki generates, and the Unicode filenames that your web server looks for when serving back the file don't match up. Files either won't get stored due to being invalid or you'll get 404 errors when trying to load them.
I don't know of a way to set the locale to UTF-8 on Windows (but good luck if you can find a way). You probably could work around it if you try a lot, or you can wait a few months for the new upload storage system which will give files portable, digest-based names.
-- brion vibber (brion @ pobox.com) _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org