By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,292 Members | 1,467 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,292 IT Pros & Developers. It's quick & easy.

Weird chars when parsing with SimpleXML

P: n/a
Hello,
I'm using php-5.0.5-pl3; I've created a collector class which
populates itself with DOM's nodes from every object which needs to
output data. So, at the end of the process, the collector has every
piece of the result in a XML document.

After this, I need to process the XML document according to the user
document request (HTML, XML, Excel, etc.); to accomplish this, I'm
using a SimpleXML to parse every node and reinterpret it.

I've successfully accomplish HTML transformation, but I've trouble
with Excel because some numeric entities aren't translated properly.
For example:

Importación (Importación) is translated to Importación
Acuática (Acuática) is translated to Acuática
España (España) is translated to España
....
and so on.

Is there any function to translate properly the accuted vocals ??

Thanks in advance!
cbi.

Dec 5 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
I think your characters are encoded to UTF-8. Use utf8-decode.

Dec 6 '05 #2

P: n/a
That was... thank you!

cbi.

Dec 6 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.