Main Stories
Slash Boxes

Slash Open Source Project

Slashcode Log In

Log In

[ Create a new account ]

RDF Support for Other Encodings

posted by pudge on 11:08 AM April 5th, 2000   Printer-friendly   Email story
gluey writes "It seems portald, the news fetcher, isn't suporting international isos
Example: (/gildot.rdf).
The problem is solved by changing line 261 of portald to:
"$p->parse($d,ProtocolEncoding => 'ISO-8859-1');"
Maybe it's a good idea to include a column in sectionblocks table for ISO support. :) "
This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login
Loading... please wait.
  • Look at Network/ [] for a list of places that serve up RSS stuff. Unfortunately, I haven't figured out (due to lack ot time to try) how to translate these to the URLs of the actual RDF files.
  • I wrote an article on about RSS [] that links to several sites that offer links to other RSS sites, like xmltree and Netscape and Userland.
  • by Anonymous Coward
    Does anyone have a list of valid rdf urls? I'd like to add a few items in. Also, how do you get the 'AltaVista' portal to show up? It's just a URL, if I have a user account and select it as the only option, I don't see anything on the right side.
  • Yes, it is optional, but required if you use alternate encoding.

    Slash DOES handle correctly formatted RDFs from what I can tell. I've seen no evidence to the contrary, anyway.

  • A quick glance at the RDF specs [] indicates that encoding is optional in the XML header. It also says that the default is UTF-8. I would vote for slash being able to handle correctly formatted RDFs.

    OTOH, if ISO-8859-1 is correct for [], then they really should fix their site.

  • Unfortunately, it is not that easy. The RDF should tell the XML Parser what encoding you are using. For instance, my RDF [] for Perl News [] has the encosing in the XML file:

    &nbsp <?xml version="1.0" encoding="ISO-8859-1" ?>

    Yours does not have that. You can, of course, find the code that creates your RDF file and add that in; we should probably add it in by default or something. I'd like to use the Perl XML::RSS [] module for creating and parsing these things, which takes care of a lot of details for us.