Login | Register
My pages Projects Community openCollabNet

Discussions > issues > [Issue 240] New - Plugin: RssViewer: Source Encoding issue

Discussion topic

Back to topic list

[Issue 240] New - Plugin: RssViewer: Source Encoding issue

Author ytjohn
Full name John Hogenmiller
Date 2005-08-25 22:08:29 PDT
Message http://cowiki.tigris​.org/issues/show_bug​.cgi?id=240
                 Issue #|240
                 Summary|Plugin: RssViewer: Source Encoding issue
       Status whiteboard|
              Issue type|DEFECT
             Assigned to|paulha
             Reported by|ytjohn

------- Additional comments from ytjohn at tigris dot org Thu Aug 25 22:08:29 -0700 2005 -------
Reported by: Moritz Bechler

I found another issue concerning the the RssViewer Plugin.
The feed mentioned in the other emails is encoded in utf-8. Using german
umlauts caused wierd two-character combinations beeing displayed instead
of them. In the source they were encoded as html entities. So I looked
for htmlentities calls in the RssViewer plugin and found the following:

 'NAME' => htmlentities($Item-​>get('title')),
 'TEASER' => htmlentities($Item-​>get('description​')),

In the PHP manual I found an encoding parameter for htmlentities and
when I used it it worked correctly:

 'NAME' => htmlentities($Item-​>get('title'),ENT​_COMPAT,'UTF-8'),
 'TEASER' => htmlentities($Item-​>get('description​'),ENT_COMPAT,'UTF-8​'),

The only problem is where to get the encoding from. $sEnc seems to be
the user encoding and isn't set (but used for the readFeed call, what
seems a bit strange to me). Perhaps it would be nice to have a
parameter for the plugin specifying the feed's encoding.

« Previous message in topic | 1 of 1 | Next message in topic »


Show all messages in topic

[Issue 240] New - Plugin: RssViewer: Source Encoding issue ytjohn John Hogenmiller 2005-08-25 22:08:29 PDT
Messages per page: