Astuce pour afficher des flux RSS avec des lettres accentuées

Quand vous voulez afficher un flux RSS sur votre site, que ce soit dans une barre latérale widgétisée ou avec le plugin First RSS (et sans doute aussi dans d’autres applications comme DotClear ou Drupal…) vous obtenez un charabia incompréhensible à la place de chaque lettre accentuée.

Il s’agit d’une sombre histoire de code de caractères. WordPress utilise généralement l’UTF-8 et le problème se pose quand le site d’origine du flux utilise une autre jeu de caractère comme ISO-8859-1 ou ISO-8859-15.

Ma solution est toute simple, il s’agit de créer un flux dans FeedBurner (nécessite une inscription) et de l’utiliser pour l’affichage dans WordPress.

Punbb

Le cas est courant avec le forum punbb et son fichier extern.php.

Rappel, pour afficher les derniers messages d’un forum punbb :

http://organiser-anniversaire.fr/forum/extern.php?action=active&type=RSS

Autres solutions.

Cette solution via FeedBurner n’est pas du tout élégante et j’ai un projet de plugin pour faire ce boulot mais comme ce projet prend la poussière j’ai décidé de publier cette petite astuce.


Tags : , ,
Commentaires
  • Démian dit :

    Cette solution ne marche pas chez moi pour importer mon statut Facebook sur mon blog WordPress. Y a-t-il une configuration spéciale pour Feedburner ?

    D’avance merci !

  • Mathgon dit :

    J’ai exactement le même problème que Démian…

  • co-relation dit :

    Advantage #1 – Predesigned Templates
    One advantage that you’ll love with eCover Go software is the predesigned templates that come along with the software. With over 200 options to get you started, it’s easy to find something that you can use when you need to create a cover fast. Each of the preloaded options can be customized to go along with your own preferences as well.

  • Advantage #2 – Step it Up with 3D
    Another advantage of these 3D eCover generators is that you can step up your advertising game with 3D. Right now 3D is very popular. People really are attracted to images that are in 3D. They look great and grab the attention of potential customers. When you begin using one of these generators for your covers, you’ll be a step beyond other marketers that are still using 2D graphics. As you step it up and create more professional eCovers, you’ll find that you sell more products, increasing your profit.

  • Advantage #3 – Many Options
    There are so many different options you can enjoy with the eCover Go generator software. You can create images for an ebook, you can create box covers for software, CD cases can be created, and so much more. Once you start using the software, there truly is no end to what you can do with it for your business. Soon you’ll find that you are using this software all the time for many reasons, which will make it well worth the small investment that you make in the app.

  • An automatic or self-winding watch is a mechanical watch, whose mainspring is wound automatically by the natural motion of the wearer’s arm, providing energy to keep the watch active, making it unnecessary to manually wind the watch.
    These are powered by an internal spiral spring called a mainspring which turns the gears that move the hands. The spring loses energy as the watch runs, so in a manual watch movement the spring must be daily wound by the owner turning a small knob on the case to provide energy to run the watch, otherwise the watch runs down and stops.

  • A self-winding watch movement is similar to a manual movement with the addition of a mechanism powered by an eccentric weight which winds the mainspring. The watch contains a semicircular rotor, an eccentric weight that turns on a pivot, within the watch case. The normal movements of the user’s arm and wrist cause the rotor to pivot back-and-forth on its staff, which is attached to a ratcheted winding mechanism. The motion of the wearer’s arm is thereby translated into the circular motion of the rotor that, through a series of reverser and reducing gears, eventually winds the mainspring. Modern self-winding mechanisms have two ratchets and wind the mainspring during both clockwise and counterclockwise rotor motions.

  • The Eco-Drive concept introduced several major technical refinements over previous solar powered watches. The combination of these refinements for the first time gave watch designers the opportunity to design light powered watches without the need to incorporate conspicuous solar cells on the watch dial.
    Most Eco-Drive type watches are equipped with a special titanium lithium ion secondary battery that is charged by an amorphous silicon solar cell located behind the dial. Light passes through the covering crystal and dial before it reaches the solar cell. Should insufficient light hit the solar cell after time the watch will go into hibernation and a quartz movement (see above) will keep track of time. During this time the hands will stop but will return to normal once light hits the cell again.

  • While thinking of crystal, two reputed brands that come into our mind- Swarovski and Waterford. While there are also certain other renowned brands available in the world, but none can match the extreme brilliance and finesse of the products that comes out from these two manufacturing houses. You can simply close your eyes and rely upon the genuine quality of their manufacture products.

  • locatesea dit :

    We began our session with a conversation about how important it is to be cautious of whom we http://www.locatesea.fr take advice from about virtually anything, but in this case running a business online.

  • honnêtement, aider les gens disent tout sur une base régulière est un travail beaucoup plus difficile http://www.comptoir-corse.fr qu’on ne le pense. Les gens ont toutes sortes d’objections à l’exécution et c’est là que réside l’art.

  • Entre eles, a cinto sem pernas de cintura baixa, sem pernas de cintura subida, com busto para
    aleitamento, com pernas supra do joelho e com pernas
    abaixo do joelho. http://Www.Eskisehirkizlari.net/author/stefaniedar/

  • ?i!,I really like your writing very so much! percentage we communicate more approxiimately yo?r article on AOL?
    ? need a specialist in this sp?ce to solve my pr?blem.

    Maybe that is you! Taking a ?o?k ahe?? to peer you.

Réagissez