Changing server encoding

Discussion in 'Site & Server Administration' started by sarahk, Aug 14, 2007.

  1. #1
    I've got a site running SilverStripe and they hardcode the server encoding into one of their core files.

    This causes a problem with my RSS feed and it fails validation (and causes problems in some of the tools I want to use the feed in) - see http://feedvalidator.org/check.cgi?url=http://www.andrewking.co.nz/pm/news/rss

    I have two choices
    1. change the server encoding on the account - but it's a shared host
    2. change the server encoding in the core file and have an upgrade headache
    I get the feeling I'm going to have to run with #2 but thought I'd just check here first - can I change the server encoding?
     
    sarahk, Aug 14, 2007 IP
  2. powerspike

    powerspike Peon

    Messages:
    312
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If they have setup the application to speficy the server encoding then more then likey #2 is the best way to go (you don't know if #1 will effect your site as a whole)

    you can just use a header(); function in php to spit out a encoding header...

    just make sure you document it so when you upgrade it's all good =)
     
    powerspike, Aug 14, 2007 IP
    sarahk likes this.
  3. Estevan

    Estevan Peon

    Messages:
    120
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    0