Problem with import xml

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Neurox66
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 120
Joined: Tue May 22, 2012 1:57 pm
Contact:

Problem with import xml

Post by Neurox66 » Thu Dec 12, 2013 4:19 pm

Hi,
I've read few emails with similar problems to mine, but I could not find a solution.
My problem is:
Import a xml file with revCreateXMLTree.
Inside the xml file there is a string : "<TITLE><![CDATA[«John Doe fined €10,000 for failing to properly inform the Istitute»]]></TITLE>"

It's all ok but the output in the field is " ¬´John Doe fined €10,000 for failing to properly inform the the Istitute¬ª "
I've tested with uniencode and unidecode but without result.
I'm crazy out :(

Any hints?

Thanks,
Paolo
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for printers | www.4pellicole.it

Klaus
Posts: 14208
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Problem with import xml

Post by Klaus » Thu Dec 12, 2013 4:41 pm

Hi Paolo,

hmm:
...
put isotomac("» ")
...
Give me -> »
But won't help either, I'm afraid :(

Is there any declaration of the used charset in the XML header?


Best

Klaus

Neurox66
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 120
Joined: Tue May 22, 2012 1:57 pm
Contact:

Re: Problem with import xml

Post by Neurox66 » Thu Dec 12, 2013 4:53 pm

Unfortunately, there is no declaration of the used charset,
but I think that is in unicode.

Paolo
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for printers | www.4pellicole.it

Neurox66
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 120
Joined: Tue May 22, 2012 1:57 pm
Contact:

Re: Problem with import xml

Post by Neurox66 » Thu Dec 12, 2013 5:04 pm

Thank Klaus for the hints,
I've tested with :

put isoToMac(uniencode("» ", "UTF8")) into tTest

and running ok!

I'm happy :)

Paolo
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for printers | www.4pellicole.it

Klaus
Posts: 14208
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Problem with import xml

Post by Klaus » Thu Dec 12, 2013 5:07 pm

GREEEEEEEEEEAT! :D

Post Reply