MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    SOLVED Encoding issues with RSS feed on Newsfeed module

    Development
    2
    5
    2388
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      moreno19 last edited by

      I’m trying to display a Brazilian new source on the default newsfeed and have a working RSS link, but characters like Ã, É, etc. keep showing up as a diamond with a question mark. The default encoding in newsfeed.js is (encoding: “UTF-8”), and I tried adding this to the default newsfeed parameters in config.js as well. I’m a newbie to .js and think this has something to do with the fetcher.js file, but I’m not sure how to fix it. Any help is appreciated!

      strawberry 3.141 1 Reply Last reply Reply Quote 0
      • strawberry 3.141
        strawberry 3.141 Project Sponsor Module Developer @moreno19 last edited by

        @moreno19 can you provide the link to the rss feed?

        Please create a github issue if you need help, so I can keep track

        M 1 Reply Last reply Reply Quote 0
        • M
          moreno19 @strawberry 3.141 last edited by

          @strawberry-3.141 Here is the link: http://feeds.folha.uol.com.br/emcimadahora/rss091.xml

          strawberry 3.141 1 Reply Last reply Reply Quote 0
          • strawberry 3.141
            strawberry 3.141 Project Sponsor Module Developer @moreno19 last edited by

            @moreno19 this works for me

            {
              title: "encoding test",
              url: "http://feeds.folha.uol.com.br/emcimadahora/rss091.xml",
              encoding: "ISO-8859-1"
            }
            

            Please create a github issue if you need help, so I can keep track

            M 1 Reply Last reply Reply Quote 0
            • M
              moreno19 @strawberry 3.141 last edited by

              @strawberry-3.141 That works for me as well now, looks like I didn’t run across ISO-8859 while I was researching. Thanks for the help!

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy