Hi,
I want to call a xml from a SMF forum.
This forum is in ISO-8859-1 and my MODx site in UTF-8.
In french language file, accents are encoded with html entities : à for ex.
This à invalids the xml so I changed it into à.
xml feed is now right, I get the à as I want but, when parsed by FeedX, the space juste before the à is deleted.
I should get
Aujourd’hui à (Today at) and I get
Aujourd’huià
Watching at the debug info, I see
Aujourd’hui� so I guess it’s a problem with encoding.
Templates are encoded in UTF-8.
Here is my snippet call :
[!FeedX? &url=`http://www.histwar.com/forum/index.php|xq|action|xe|.xml` &debug=`1` &preset=`histwar` &convEntities=`0` !]
I did some test with &convEntities. If I put it on 1, I get an
error on mb_convert_encoding. So I tried
this fix and then : nothing shows up, I can’t get the xml feed displayed.
Don’t know what to do... Why the space between the à is deleted ? Why I get this error on mb_convert_encoding ? ...