Damn Portuguese characters… and UTF-8
In my comercial licence EE installed at http://www.mpsfarmaceutica.pt I am trying to generate a XML file to integrate dinamicaly into flash
I have created a template that has the following lines:
<?xml version="1.0" encoding="UTF-8"?>
<documento>
{exp:weblog:entries weblog="noticias" limit="2" rdf="off" dynamic_start="on" disable="member_data|trackbacks" category="2&5;" orderby="date"}
<item>
<title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
<sumario>{exp:xml_encode}{summary}{/exp:xml_encode}</sumario>
</item>
{/exp:weblog:entries}
</documento>
and that shows this output:
http://www.mpsfarmaceutica.pt/index.php/palop2/noticias_xml
<documento>
−<item>
<title>Ranking de Importações de Portugal</title>
−<sumario>
Isto é o sumário que é introduzido nas caixas de entrada do site. não pode ser muito grande, apenas grandito!
</sumario>
</item>
−<item>
<title>Novas regras do créditos documentários em Portugal</title>
−<sumario>Isto é um sumário para exemplificar o tamanho máximo desta caixa de texto
</sumario>
</item>
</documento>Now… can you see what is happening???
The <title> is beeing correctly generated with the portugues chars
The <sumario> isn’t!!!
I know they are in different tables, but the encoding is sitewise…
Now I see that the title is beeing inserted “unformated” into a table but the other entries are beeing “inserted” CONVERTED to UTF-8
How can I remove this conversion?
What can i do to make it output this correctly?
THanxs fo any help…
JPC
PS(this project for a friend as gon through so many mutations that I have already learnt CSS, php, semantics and now it’ going on in Flash (actionscripted from the ground!) all courtesy of the designer..that is never happy 😉