Hello!
Hope to get some answers and tips here 🙂
I'm making a system which involves xml files. Using xml i hope to make it usable in many different system which brings me to the first question.
What is the most logical encoding type? I would think UTF-8, but correct me if i'm wrong 🙂 So i write <?xml version="1.0" encoding="utf-8"?> when doing my xml files.
But with this i'm having problems with displaying and saving data from/into my xml files. I'm using simpleXML for displaying and i guess i have to use DOM to save and manipulate to the files i keep.
When i try to generate some xml in php i get these errrors:
Warning: DOMDocument::loadXML() [function.loadXML]: Input is not proper UTF-8, indicate encoding ! in Entity, line: 15 in
so i wonder, shall i just use utf8_encode and utf8_decode whenever i want to fetch or do something with data around my xml file? (that is if i should have the xml encoding put to utf8 in the first place..) Does it go well with other programming languages and such having the xml file with all these strange characters utf8 makes..?
Might sound a bit confusing, hope someone understands x)