Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#472 closed Defect (fixed)

Charset doesn't get exported correctly

Reported by: tstrunk Owned by: Rytis
Priority: Minor Milestone: Undetermined
Component: Web - Localization Version:
Keywords: Cc:

Description (last modified by Nicolas)

The Charset is not exported correctly anymore, like it is set in the translation file for each language.

Util.inc:117 (revision 14119 - current)
header("Content-type: text/html; charset=".tra(CHARSET));
should either be
header("Content-type: text/html; charset=".tra("CHARSET")); //because tra operates on strings
or
header("Content-type: text/html; charset=".tr(CHARSET)); //to take the CHARSET token

To 'reproduce' the bug, you can check the used charset for example in Firefox with 'Right Click -> View Page Info". Without the fix it should just use the default charset for your browser.

Change History (2)

comment:1 Changed 16 years ago by Rytis

Resolution: fixed
Status: newclosed

(In [14203]) Fix #472 (charset not selected correctly from translation file)

comment:2 Changed 16 years ago by Nicolas

Description: modified (diff)
Note: See TracTickets for help on using tickets.