Jump to:

3445 Posts in 1031 Topics by 872 members

Template Questions

SilverStripe Forums » Template Questions » template-components

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

Page: 1
Go to End
Author Topic: 2470 Views
  • tgwpqd
    Avatar
    Community Member
    7 Posts

    template-components Link to this post

    hi,

    i have created template.ss and template-Edit.ss to get the components under the CMS.

    i had used html edit to creat the story, and the page shows some � � � � � � � which are not in my codes.

    i have no idea how to fix that, i need some help.

    thanks

  • Nivanka
    Avatar
    Community Member
    395 Posts

    Re: template-components Link to this post

    Seems like the characters are not escaped.

    Does it replace any characters on the page?

    for an example you have to use & for the ampersand

  • janulka
    Avatar
    Community Member
    80 Posts

    Re: template-components Link to this post

    hello,

    ye, it looks like it is replacing characters

    in mysite/_config.php:

    ContentNegotiator::set_encoding('utf-8');

    and in templates (Page.ss):

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

    at least this worked for me and norwegian æ å ø symbols

  • Beck
    Avatar
    Community Member
    23 Posts

    Re: template-components Link to this post

    I have also this problem i created template in russian but all russian text in template, i can't see. i used both way encoding in
    1. _config.php ContentNegotiator::set_encoding('windows-1251');
    2. <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" /> in page.ss

    but it doesn't work help me please.

  • Beck
    Avatar
    Community Member
    23 Posts

    Re: template-components Link to this post

    even i tried in html code but unfortunally doesn't work

    HTML CODES:
    http://webdesign.about.com/od/localization/l/blhtmlcodes-ru.htm

    2470 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.