[TYPO3] Problem with utf-8 display in header
Christopher Torgalson
bedlamhotel at gmail.com
Tue Feb 6 17:15:22 CET 2007
Hi,
On 2/6/07, Sara Weale <webmaster at llgc.org.uk> wrote:
> We cannot get utf to display when content is entered in the Header field of a
> content element. Characters display properly in all other areas.
>
> The html looks like this:
>
> <div class="bodytext"><!--TYPO3SEARCH_begin-->
> <!-- CONTENT ELEMENT, uid:184/text [begin] -->
> <a id="c184"></a>
> <!-- Header: [begin] -->
> <div class="csc-header csc-header-n1"><h1 class="csc-firstHeader">&#373;</h1><br></div>
> <!-- Header: [end] -->
>
> <!-- Text: [begin] -->
>
> <p class="bodytext"> </p>
> <p class="bodytext">ŵ</p>
> <!-- Text: [end] -->
>
> The content displays as:
>
>
> ŵ
>
>
> ŵ
>
> --------------------
>
> It obviously has something to do with the classes that typo3 allocate as all
> other headings (without the csc-firstHeader class) display correctly.
>
> Any suggestions how to force csc-firstHeader to display in utf-8 even though
> typo3conf is set to force a utf-8 display and all the headers are encoded
> properly or to remove the class from the header field?
First point: CSS can have no effect whatsoever on /what character/ a
browser displays a given html entity as.
Secondly, "&#373;" makes no sense. It seems that "ŵ" has been
run through php's htmlspecialchars() function. Search lib.stdheader in
the TS object browser for 'htmlspecialchars = 1' and set it to '0'.
--
Christopher Torgalson
More information about the TYPO3-english
mailing list