Jump to:

23450 Posts in 18899 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » Does SS3 encode Content-Type differently to SS2.x?

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: 496 Views
  • Double-A-Ron
    Avatar
    Community Member
    604 Posts

    Does SS3 encode Content-Type differently to SS2.x? Link to this post

    So I've run an upgrade on a 2.4 site and all is kind-of well after migrating the usual deprecated classes and template constructs. Other than these changes, nothing in my classes or templates has changed.

    What I have found on doing the upgrade on two different environments is that some weird encoding is making it's way into some of my page content. Live example is here: http://ss3.vivaexpeditions.com/south-america-tours/patagonia-travel/wild-patagonia-santiago-to-ushuaia-2. See the  and – characters in the main body.

    Admittedly, these characters are in the database too. But the thing is, they are also in the SS2.4 database too, and that somehow gets away with it. http://www.vivaexpeditions.com/south-america-tours/patagonia-travel/wild-patagonia-santiago-to-ushuaia-2

    Database encoding looks identical. Doctype and meta looks identical. When I compare sources in Winmerge, only the content really stands out as being different.

    Could this be something new in SS3 at work that I need to cater for? Anyone encountered the same? I've made a quick function to clean on the fly, but would rather they overhead if there are other ideas.

    Cheers

  • Double-A-Ron
    Avatar
    Community Member
    604 Posts

    Re: Does SS3 encode Content-Type differently to SS2.x? Link to this post

    I have since discovered that this is occurring on most content after the upgrade.

    After checking the database collations against the 2.4 copy of the site, I can safely say the only difference here is the Silverstripe version. The 2.4 version even has content with these encoded characters in them, yet they are not displayed on render.

    Has no one else seen this? Days of hunting general encoding issues has revealed nothing.

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