Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Problem with encoding in the CMS

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

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

Page: 1
Go to End
Author Topic: 2496 Views
  • eMilt
    Avatar
    6 Posts

    Problem with encoding in the CMS Link to this post

    Hello everyone!
    I got a problem about the charset encoding in the CMS. I tried the "ContentNegotiator::set_encoding('iso-8859-1');" in "\mysite\_config.php" But that only worked for the published site.

    I need to set the encoding for both the published site and the cms controlpanel. can anyone help me with this?

    thanks in advance

  • eMilt
    Avatar
    6 Posts

    Re: Problem with encoding in the CMS Link to this post

    I managed to change the encoding in the "\cms\LeftAndMain.ss" template. However, my problem is not solved after all.

    The reason I wanted to change the encoding was because every time I used Norwegian characters as the page name, It rendered as gibberish which it still does :s

    Ã¥ (å) transformed to Ã¥ and so on... If anyone has a solution to this problem I would deeply appreciate some help

    Regards

  • Tim
    Avatar
    Core Development Team
    201 Posts

    Re: Problem with encoding in the CMS Link to this post

    Your best bet may be to wait for SilverStripe 2.2 which has full multilingual support. The first release candidate will be out this week.

  • Ingo
    Avatar
    Forum Moderator
    801 Posts

    Re: Problem with encoding in the CMS Link to this post

    even while 2.2 has multilingual support, it will still view and store all strings as utf8 (unicode). we don't provide facilities for characterset-conversion out of the box, you're best bet is to got unicode all the way. you might want to check that your rendered site is actually interpreted as unicode (e.g in firefox page information).

    2496 Views
Page: 1
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.