Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Maori macron problems

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1 2
Go to End
Author Topic: 6447 Views
  • Emms
    Avatar
    Community Member
    9 Posts

    Maori macron problems Link to this post

    Hi guys
    Im having issues trying to get macronised characters to show on my live site (Ā, ā are displaying as ??). Any info I can find on the subject just says to make sure everything is set to Unicode, which it is.. So I'm not sure what the problem is...

    I thought it might be the database, however have gone in and changed that to utf8-unicode and there is no change... Other accented characters show up fine - it is just these ones that are giving me big problems :'(

    Please help!

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: Maori macron problems Link to this post

    Have you tried browsing the site from different computers and/or browsers?

    Does the problem appear in both the CMS and the site?

    What are the content type meta tags in your template set to?

    What does the "page info" section of your browser think that the character set is?

  • Emms
    Avatar
    Community Member
    9 Posts

    Re: Maori macron problems Link to this post

    Yes, it shows up in different computers and browsers. The characters show up perfectly in the CMS but come out as ?? on the live site.. Meta tags are set to utf-8, and page info says its utf-8 also.

  • phptek
    Avatar
    Community Member
    15 Posts

    Re: Maori macron problems Link to this post

    There are other things to check (if you haven't already)

    * In MySQL to comprehesnviely set UTF-8:
    - in my.cnf:

    [client]
    default-character-set=utf8
    [mysqld]
    character-set-server=utf8

    Ensure the following when you issue:

    #>SHOW VARIABLES LIKE 'character\_set\_%';
    +--------------------------+-------+
    | Variable_name | Value |
    +--------------------------+-------+
    | character_set_client | utf8 |
    | character_set_connection | utf8 |
    | character_set_database | utf8 |
    | character_set_results | utf8 |
    | character_set_server | utf8 |
    | character_set_system | utf8 |
    +--------------------------+-------+

    Check also:

    * The Content-Type as specified by your webserver
    * The Content-Type as specified in the <form> element on the page of the CMS you wrote your Maori language in. See here for more info: http://www.w3schools.com/tags/tag_form.asp

    Cheers,
    Russ

  • Emms
    Avatar
    Community Member
    9 Posts

    Re: Maori macron problems Link to this post

    Thanks for the reply Russ, I have made sure that all of the tables in mySQL are set to UTF-8.

    The CMS form where I am entering my info does not have a content type specified within the form element but the head of the page states UTF-8..

    One thing I have noticed is that when I enter the characters into the CMS and click Save&Publish it is fine, but as soon as a page refresh or log out and back in again, they are showing as ??'s in the CMS as well.

  • phptek
    Avatar
    Community Member
    15 Posts

    Re: Maori macron problems Link to this post

    Hmm, do you have a link so I can take a look? I might be able to replicate it..

    Otheriwse, try re-posting your issue onto the "bugs (temp)" forum describing your problem again and paste a link to this thread. If no-one replies within a couple of days, I would open a new Trac bug ticket (open.silverstripe.com) as it sounds to me like something the developers need to check out. (Without my knowing of course your exact setup - which you'd of course need to post with your tiocket too

    Sorry I can't be of more help. Good luck.

  • Emms
    Avatar
    Community Member
    9 Posts

    Re: Maori macron problems Link to this post

    Hi,
    Heres a link to a page I have been testing on:
    http://www.takirua.gooduse.co.nz/strange-resting-places/

    The line of ??'s after "Directed by Leo Gene Peters" is what resulted after typing in a bunch of ā's.

    Thanks for the help, appreciate it!

  • phptek
    Avatar
    Community Member
    15 Posts

    Re: Maori macron problems Link to this post

    This is a test...last time the forum died...

    6447 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.