Non-alphabetical characters can´t be imported well

Non-alphabetical characters can´t be imported well

by Germán Matías -
Number of replies: 2

If I try to import entries with spanish characters like "á", "ó", etc., no entries are imported. Something fails inside the Glossary module that don´t treat them as valid ones.

If I delete the spanish characters, then it is imported ok.

One file is attached as an example. If you change the "ó" by simples "o" the file is imported, if you leave it like that, the entry is not imported.

Any clue will be very apreciated.

Average of ratings: -
In reply to Germán Matías

Re: Non-alphabetical characters can´t be imported well

by Eloy Lafuente (stronk7) -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Hi Germán,

the problem seems to be that your XML is using the ISO-8859-1 encoding and, before PHP 5.0.2, it was a problem to import such files into Moodle (because the PHP engine wasn't able to convert them properly).

The quickest solution is to convert the file to utf-8, it can be done, under unix, with:
iconv -f iso-8859-1 -t utf-8 pru.xml > pru_converted.xml

Moodle will import it perfectly, I hope. wink

I've attached the converted file, for your tests...ciao smile
In reply to Eloy Lafuente (stronk7)

Re: Non-alphabetical characters can´t be imported well

by Germán Matías -

That was exactly the problem and you suggested a very good solution (as always!)

Thank you very much.