Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

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

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

Maori macron problems


Go to End
Reply

11 Posts   6552 Views

Avatar
Emms

1 April 2008 at 4:30pm Community Member, 9 Posts

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!

Avatar
Sam

1 April 2008 at 5:21pm (Last edited: 1 April 2008 5:22pm), Administrator, 685 Posts

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?

Avatar
Emms

2 April 2008 at 9:02am Community Member, 9 Posts

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.

Avatar
phptek

2 April 2008 at 1:37pm Community Member, 15 Posts

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

Avatar
Emms

4 April 2008 at 10:22am Community Member, 9 Posts

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.

Avatar
phptek

4 April 2008 at 10:30am Community Member, 15 Posts

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. :-)

Avatar
Emms

4 April 2008 at 10:43am Community Member, 9 Posts

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!

Avatar
phptek

4 April 2008 at 11:43am Community Member, 15 Posts

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

Go to Top