Jump to:

23478 Posts in 18941 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Silverstripe and Encoding

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 818 Views
  • alexanm
    Community Member
    38 Posts

    Silverstripe and Encoding Link to this post


    I've got a problem and have not found a solution for it in the Forums.

    The Situation: I have a fresh installation of the latest stable Silverstripe 3.2.1 using the BlackCandy theme on IIS 7.

    I open the start page in a browser and everything looks ok.
    I open the Page.ss file and save it without any changes UTF-8 encoded. When I now have a look at the page again with IE, the Page is heavily distorted and looks very ugly. When I have a look at the sources of the generated page, and switch to hex view, I can see that there are some additional non printable chars in front of the file:   (As I'm not sure if they show up correctly in the forum, I'll also give you the hex keys: EF BB BF 20 EF BB BF). When I remove these characters and save the page as html and reopen it in the browser everything is ok. When I save the Page.ss file in ANSI/ASCII everything is ok again.
    The same thing happens whenever I use the _t function (either in Page.php or Page.ss).

    I had an earlier installation of SilverStripe where this problem did not occur, but suddenly I had this problem, and I don't know how to solve it.

    Any ideas?

    Markus Alexander

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.