1
Feneex
RSS with international encoding
  • 2005/11/3 13:54

  • Feneex

  • Just popping in

  • Posts: 98

  • Since: 2004/12/25


I've using xldh0 module to share some headlines through RSS

The problem is, that both of the sites are using WINDOWS-1257 character set, and I cannot display proper characters in destination site.

Does anyone succeded with international RSS (non UTF-8) ?
________________________________________
Naslenas.com - how personal blog is born... sorry, but Drupal :/
Some free Xoops themes to download

2
davidthomas1
Re: RSS with international encoding

If the destination site uses the same encoding ( WINDOWS-1257 ) - it should work.

Generally, I feel it's best to use UTF-8 for international language support. I use UTF-8 as standard. But changing your site to UTF-8 requires significant work in re-encoding language and other XOOPS files.

I just read your post again. Basically you wrote that both sites are already using WINDOWS-1257 and the international characters aren't coming across in the RSS.

Sorry, I can't help much with that one, aside from suggesting to use UTF-8.
みんなちがってみんないい。

XOOPS 2.0.13.2

3
Feneex
Re: RSS with international encoding
  • 2005/11/3 14:20

  • Feneex

  • Just popping in

  • Posts: 98

  • Since: 2004/12/25


The idea is, that BOTH of the sites use the same encoding, but I do not get right chars.

I am using new News 1.4 module to syndicate RSS, and it seems, that there is "utf-8" encoding hardcoded into syndication file.

Did you succeeded when transferring headlines from the same encoding sites? What modules are u using? xld0 from Gijoe or old xoopsheadline ?
________________________________________
Naslenas.com - how personal blog is born... sorry, but Drupal :/
Some free Xoops themes to download

4
LazyBadger
Re: RSS with international encoding

No problem here with 1251.
You have
1. Read Russian localisation as example (included into distro, AFAIR)
2. Understand idea inside modules\xhld0\language\russian\headlinerenderer.php
3. Check presence of iconv on target host
3. Add logic into your localisation (function &convertToUtf8(&$xmlfile)
in
switch( strtolower( $encoding ) ))
Quis custodiet ipsos custodes?

Webmaster of
XOOPS2.RU
XOOPS Modules Proving Ground
XOOPS Themes Exhibition

5
Feneex
Re: RSS with international encoding
  • 2005/11/3 14:32

  • Feneex

  • Just popping in

  • Posts: 98

  • Since: 2004/12/25


Quote:

LazyBadger wrote:
No problem here with 1251.
You have
1. Read Russian localisation as example (included into distro, AFAIR)
2. Understand idea inside modules\xhld0\language\russian\headlinerenderer.php
3. Check presence of iconv on target host
3. Add logic into your localisation (function &convertToUtf8(&$xmlfile)
in
switch( strtolower( $encoding ) ))


i'll try this... but I'm using windows-1257, which is lithuanian :)
________________________________________
Naslenas.com - how personal blog is born... sorry, but Drupal :/
Some free Xoops themes to download

6
davidthomas1
Re: RSS with international encoding

If you want to change the encoding for the news rss feed, you'd need to edit this file :

modules/news/backendt.php

It looks hardcoded into the file, but if you take out the utf-8 encoding parts, it should publish it in your normal encoding.

If you're going to edit the file, remember to back it up first.

Another thought, if the RSS feed is auto-encoded to UTF-8, can you get the other site to read it as UTF-8?
みんなちがってみんないい。

XOOPS 2.0.13.2

7
LazyBadger
Re: RSS with international encoding

Quote:

Feneex wrote:
i'll try this... but I'm using windows-1257, which is lithuanian :)

Get idea and add own charset - it's 2 minute's work
Quis custodiet ipsos custodes?

Webmaster of
XOOPS2.RU
XOOPS Modules Proving Ground
XOOPS Themes Exhibition

8
Feneex
Re: RSS with international encoding
  • 2005/11/3 14:56

  • Feneex

  • Just popping in

  • Posts: 98

  • Since: 2004/12/25


Thank You!!!!

I've got it working :)
________________________________________
Naslenas.com - how personal blog is born... sorry, but Drupal :/
Some free Xoops themes to download

Login

Who's Online

172 user(s) are online (108 user(s) are browsing Support Forums)


Members: 0


Guests: 172


more...

Donat-O-Meter

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

Latest GitHub Commits