GNOME Bugzilla – Bug 335929
Export does not qualify the encoding even if different from iso-8859-1
Last modified: 2006-03-27 02:46:12 UTC
Please describe the problem: When exporting pictures to a Folder Gallery, no metadata is issued in the header to tell web browsers what encoding is used for comments and such. I use UTF-8 locale, and my accents (e.g. "é") in the comments and buttons are seen as "é". People with other locales will see problems but differently (default encoding for HTML is iso-8859-1) according to their web server, browser and locale settings. Steps to reproduce: 1. Open f-spot with LANG=fr_FR.UTF-8 (or other UTF-8 locale), select pictures 2. Export to Folder 3. Open the resulting pages (local opening is perfect for proof). Actual results: Accents will be displayed wrongly (e.g. in French, click on the second picture, the "previous picture" button will show as "Préc."). Expected results: Accents will be displayed correctly (e.g. in French, click on the second picture, the "previous picture" button will show as "Préc."). Does this happen every time? Yes Other information: I have a patch that adds an encoding info string to every html file.
Created attachment 61966 [details] [review] Patch against f-spot-0.1.10 to solve the problem This patch also includes preliminary ground for inclusion of encoding choice in the glade interface. However, this should only be available in most advanced export preferences, if ever. This patch does not add any line if charset is iso-8859-1 or us-ascii, since these are the default encodings of HTML. However, this could be seen as a disadvantage since some servers are set to serve other encodings by default (e.g. Apache's DefaultEncoding pref), so a iso-8859-1 file would be served as something else.
Thanks for the report and the patch. This problem has already been submitted at bug #329685 - can you please see the patch there and resubmit yours if needed? Thanks again *** This bug has been marked as a duplicate of 329685 ***