Development

Changeset 1400

You must first sign up to be able to contribute.

Changeset 1400

Show
Ignore:
Timestamp:
06/09/06 13:21:30 (2 years ago)
Author:
fabien
Message:

added encoding option to sfFeed (closes #591)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfFeed/lib/sfAtom1Feed.class.php

    r1054 r1400  
    2525 
    2626    $xml = array(); 
    27     $xml[] = '<?xml version="1.0" encoding="UTF-8" ?>'; 
     27    $xml[] = '<?xml version="1.0" encoding="'.$this->getEncoding().'" ?>'; 
    2828 
    2929    if ($this->getLanguage()) 
  • plugins/sfFeed/lib/sfFeed.class.php

    r1327 r1400  
    3333    $categories = array(), 
    3434    $feedItemsRouteName = '', 
    35     $feedUrl; 
     35    $feedUrl, 
     36    $encoding = 'UTF-8'; 
    3637 
    3738  private 
     
    460461  } 
    461462 
     463  public function getEncoding() 
     464  { 
     465    return $this->encoding; 
     466  } 
     467 
     468  public function setEncoding($encoding) 
     469  { 
     470    $this->encoding = $encoding; 
     471  } 
     472 
    462473  private function getItemFeedAuthor ($item) 
    463474  { 
  • plugins/sfFeed/lib/sfRssFeed.class.php

    r1054 r1400  
    2323 
    2424    $xml = array(); 
    25     $xml[] = '<?xml version="1.0" encoding="UTF-8" ?>'; 
     25    $xml[] = '<?xml version="1.0" encoding="'.$this->getEncoding().'" ?>'; 
    2626    $xml[] = '<rss version="'.$this->getVersion().'">'; 
    2727    $xml[] = '  <channel>'; 
  • plugins/sfFeed/package.xml

    r1327 r1400  
    1111  <active>yes</active> 
    1212 </lead> 
    13  <date>2006-05-09</date> 
     13 <date>2006-06-09</date> 
    1414 <version> 
    15    <release>1.0.3</release> 
     15   <release>1.0.4</release> 
    1616   <api>1.0.0</api> 
    1717 </version>