Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

HTML umlauts

Help
2005-07-06
2012-08-29
  • Hi there,

    I have an application producing html-style encoding of umlauts:-(
    So RSSOwl stucks with

    Error on line 11: The entity "auml" was referenced, but not declared.

    The xml-parser fails.

    Does anybody know how to "extend" the RSS-DTD or whatever that is, so that umlauts may be used?

    Maybe I understood nothing... I looked up this site for getting an idea how RSS works:
    http://blogs.law.harvard.edu/tech/rss

    Is there some better doc with examples?

    TIA,
    guenter

     
    • Thanks, grazie, danke, Ben!

      It works, also on my local server with the php stuff behind.
      May I ask You, if I should have known this "noop.dtd"?

      Anyway, thank You very much. When the site is online I'll send You the URL:-)

      Greetings,
      guenter

       
      • Well, yes, if you use entities inside a XML you have to know about DTDs. Any application dealing with XML will expect a DTD to be set, even if they ignore the declaration and use their own set of DTD.

        Ben

         
    • Hi guenter,

      RSSOwl is ignoring the DTD that you might have set in your newsfeed, but is using a default one which includes the most standard entities. German umlauts are inlcuded, so RSSOwl should be able to display your feed.

      Could you send me the URL of your feed, or sent the XML file? I would like to have a look.

      Ben

       
    • Hi Ben,

      wow, what a quick response! Thanks a lot!

      Here is the contents of my test file:

      <?xml version="1.0" ?>
      <rss version="2.0">
      <channel>
      <title>Ein Forum</title>
      <link>http://localhost/forum/foren.php</link>
      <description>Forumsbeschreibung</description>
      <item>
      <pubDate>Wed, 6 Jul 2005 16:14:57 +0200</pubDate>
      <title>fooser: 06.07 16.14:57 - Re: t2</title>
      <link>http://localhost/forum/beitraege.php?fid=0&amp;tid=37&amp;sid=38&amp;bid=39</link>
      <description>bl&auml;</description>
      </item>
      </channel>
      </rss>

      THX a lot,
      guenter

       
      • Ok I see now the problem. You dont have any DTD declaration set, so RSSOwl is not even using its default DTD.

        So, the way to solve this problem is to add a fake DTD declaration like this:

        <!DOCTYPE noop SYSTEM "noop.dtd">

        directly after the "<?xml..." declaration.

        Ben