[Vtigercrm-commits] [vtiger-commits] r10570 - /vtigercrm/branches/5.0.3/modules/Rss/Rss.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Apr 5 11:42:53 EDT 2007
Author: saraj
Date: Thu Apr 5 09:42:49 2007
New Revision: 10570
Log:
UTF-8 support for RSS feeds. Fixes #3258
Modified:
vtigercrm/branches/5.0.3/modules/Rss/Rss.php
Modified: vtigercrm/branches/5.0.3/modules/Rss/Rss.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Rss/Rss.php (original)
+++ vtigercrm/branches/5.0.3/modules/Rss/Rss.php Thu Apr 5 09:42:49 2007
@@ -69,13 +69,17 @@
function getListViewRSSHtml()
{
+ global $default_charset;
if(isset($this->rss_object))
{
$i = 0;
foreach($this->rss_object as $key=>$item)
{
+ $stringConvert = iconv("UTF-8",$default_charset,$item[title]);
+ $rss_title= addslashes(ltrim(rtrim($stringConvert)));
+
$i = $i + 1;
- $shtml .= "<tr class='prvPrfHoverOff' onmouseover=\"this.className='prvPrfHoverOn'\" onmouseout=\"this.className='prvPrfHoverOff'\"><td><a href=\"javascript:display('".$item[link]."','feedlist_".$i."')\"; id='feedlist_".$i."' class=\"rssNews\">".$item[title]."</a></td><td>".$this->rss_title."</td></tr>";
+ $shtml .= "<tr class='prvPrfHoverOff' onmouseover=\"this.className='prvPrfHoverOn'\" onmouseout=\"this.className='prvPrfHoverOff'\"><td><a href=\"javascript:display('".$item[link]."','feedlist_".$i."')\"; id='feedlist_".$i."' class=\"rssNews\">".$rss_title."</a></td><td>".$this->rss_title."</td></tr>";
if($i == 10)
{
return $shtml;
More information about the vtigercrm-commits
mailing list