Forums

[resolved] A strange/weird problem ? charset characters (2 posts)

  1. ijlal.hasnain
    Member
    Posted 1 year ago #

    Hey.

    I am facing a very strange problem. The problem is related to displayed non-english (swedish) characters on site. The problem is that some swedish characters like " ä " is displaying as weird/black diamond in header section but displays fine in index section.

    If you have a look at
    http://sites.five12apps.com/motorblocket/

    You will see black diamonds in "Lägg till ny annons ". Just couple of line later, the index.php file starts and same text (Lägg till ny annons ) is hardcoded there. There it displays well :S.

    So my markup is like

    <br />
    ///header.php</p>
    <p>Lägg till ny annons Lägg till ny annons </p>
    <p>/////index.php<br />
    get_header();?><br />
    Lägg till ny annons Lägg till ny annons Lägg till ny annons<br />

    I hope i make myself clear.

    Summary is : The text (Lägg till ny annons) hardcoded in header.php outputs black-diamond, but the same text hardcoded in (index.php) displays correctly (same file including header.php with get_heade()).

    Best Regards.

  2. ijlal.hasnain
    Member
    Posted 1 year ago #

    it seems like header.php was using different unicode normalization. I copy pasted the whole header.php, open a notepad document, paste and save it as header.php.

    everything works fine now.

Topic Closed

This topic has been closed to new replies.

About this Topic