1
deka87
RSS feed modules encoding problem
  • 2008/10/5 14:14

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


Hi,

I use xhld0 and xreaggregator module for displaying RSS feed on my website, and I have problems with encoding. It doesnt show russian, arabic and chinese letters right, althought UTF-8 is set as default and the feed are UTF-8 too. What is the problem?
Mind anchors

2
awf2000
Re: RSS feed modules encoding problem
  • 2008/10/8 8:52

  • awf2000

  • Just popping in

  • Posts: 44

  • Since: 2007/5/7 5


I use RssFit 1.22 and it sends news like trash

My site 2.3.0 (with UTF-8)

3
awf2000
Re: RSS feed modules encoding problem
  • 2008/10/13 8:26

  • awf2000

  • Just popping in

  • Posts: 44

  • Since: 2007/5/7 5


Example:

Resized Image

it must be a Russian language

4
JohnDoo
Re: RSS feed modules encoding problem
  • 2008/10/23 11:26

  • JohnDoo

  • Just popping in

  • Posts: 14

  • Since: 2003/9/30


I'm having the same problem with my site. I think there's a problem in backend.php. The generated html claims to be utf-8 encoded but the characters seems to be iso-8859 encoded.
I'm getting things like "Asociación" instead of "Asociación".

5
JohnDoo
Re: RSS feed modules encoding problem -> bug in utf8_encode function?
  • 2008/10/27 18:54

  • JohnDoo

  • Just popping in

  • Posts: 14

  • Since: 2003/9/30


I managed to solve the problem by removing all xoops_utf8_encode calls in backend.php. For example:

$tpl->assign('channel_title'xoops_utf8_encode(htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES)));


should be changed to:

$tpl->assign('channel_title'htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES));


So the problem could be that htmlspecialchars() is already returning UTF-8 characters and xoops_utf8_encode() is badly re-encoding the characters, could it be?
I've seen xoops_utf8_encode is in the end calling XoopsLocalAbstract:utf8_encode() and at the beginning of utf8_encode it says:

// Each local language should define its own equalient utf8_encode

What does it mean?

BTW, backend.php seems to be the only XOOPS core file calling xoops_utf8_encode.

Any other having this problem? I think it should affect to all utf8 installations using non-english characters.



6
Mamba
Re: RSS feed modules encoding problem -> bug in utf8_encode function?
  • 2008/10/27 19:06

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


I thought that 2.3.1 solved the issue:
Quote:

Meanwhile XOOPS news aggregator has been improved for non UTF-8 charset websites, multiple feeds are enabled.

Are you using 2.3.0 or 2.3.1?
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

7
JohnDoo
Re: RSS feed modules encoding problem -> bug in utf8_encode function?
  • 2008/10/27 20:16

  • JohnDoo

  • Just popping in

  • Posts: 14

  • Since: 2003/9/30


I'm using 2.3.1 so I think this is not solved yet.

8
pablo103
Re: RSS feed modules encoding problem
  • 2010/7/30 11:16

  • pablo103

  • Not too shy to talk

  • Posts: 181

  • Since: 2008/2/3 1


i am using 2.4.5 and it is still not solved, i will try this hack.

9
pablo103
Re: RSS feed modules encoding problem
  • 2010/7/30 12:24

  • pablo103

  • Not too shy to talk

  • Posts: 181

  • Since: 2008/2/3 1


Didn t solve actually, i think we have a problem here...

10
ghia
Re: RSS feed modules encoding problem
  • 2010/7/31 7:10

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


PHP, MySQL version?
Database collation? Char set in mainfile.php and global.php?
If using xLanguage, settings?

Login

Who's Online

394 user(s) are online (299 user(s) are browsing Support Forums)


Members: 0


Guests: 394


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