11
pablo103
Re: How to RSS my xoops ?????? Backend and RSSfit plugins !
  • 2010/7/7 12:16

  • pablo103

  • Not too shy to talk

  • Posts: 181

  • Since: 2008/2/3 1


I check it out. I don t need convertion to utf 8 by xoops_utf8_encode function. I need the rss to work with the orginal iso-8859-1

This function already exist in my backend:

Quote:
'description' => xoops_utf8_encode(htmlspecialchars($item->getVar('ads_desc'), ENT_QUOTES))));


I tried to cut it off like this

Quote:
'description' => (htmlspecialchars($item->getVar('ads_desc'), ENT_QUOTES))));


but i am getting just diferent wrong characters. What should i write instead of xoops_utf8_encode so it won t affect my encoding?
Thanks

12
ghia
Re: How to RSS my xoops ?????? Backend and RSSfit plugins !
  • 2010/7/7 21:42

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Character set of catads database table (collation)? Char set in mainfile.php and global.php? Link to see?

13
pablo103
Re: How to RSS my xoops ?????? Backend and RSSfit plugins !
  • 2010/7/7 22:30

  • pablo103

  • Not too shy to talk

  • Posts: 181

  • Since: 2008/2/3 1


mainfile.php
define( 'XOOPS_DB_CHARSET', '' );

global.php
define('_CHARSET', empty($xlanguage["charset"])?'ISO-8859-1':$xlanguage["charset"]);

colation is latin2_general_ci

Why does it have to convert to utf8, can t i just replace this function?

14
ghia
Re: How to RSS my xoops ?????? Backend and RSSfit plugins !
  • 2010/7/8 6:10

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Most logical for a latin2_general_ci collation should be latin2 in mainfile and ISO-8859-2 in global and also in the xLanguage settings. What did you set in xLanguage?
(Beware: altering these settings can affect the view of some special characters on your site.)
Most RSS outputs are defaulting to the universal UTF-8 character set, but other character sets are also possible.
Which character sets are used in the RSS feed (open the link with fireFox and do view source)?
(Some RSS readers may also default to some character set, without taking into account the specified one of the RSS output and thus misrepresenting the content.)

15
Runeher
Re: How to RSS my xoops ?????? Backend and RSSfit plugins !
  • 2010/7/8 13:11

  • Runeher

  • Module Developer

  • Posts: 825

  • Since: 2008/1/24



Login

Who's Online

213 user(s) are online (145 user(s) are browsing Support Forums)


Members: 0


Guests: 213


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits