Shoutbox

Encoding of XML files? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Encoding of XML files? (/showthread.php?tid=61903)

Encoding of XML files? by Lenain on 06-28-2006 at 04:14 PM

Hello everybody! :)

There is something weird when i attempt to use an interface window xml file that i've created by myself...

When this one is encoded in ANSI, or any characters set else thant "USC-2 little endian", the window in my script isn't launched...

I mean, i've compared 2 files, they are EXACTLY the same... the only thing that is different is the encoding! The content of this file can be very simple (like the example shown in the scripting documentation) or a bit more complex (like a messenger plus live! interface).

Should we always use "USC-2 little endian" as default encoding? Or is there something i've missed in the help file? ^^


RE: Encoding of XML files? by MeEtc on 06-28-2006 at 06:28 PM

Save the script in Unicode.


RE: Encoding of XML files? by CookieRevised on 06-28-2006 at 06:37 PM

All the XML files, not only those of script, but also those of the interface skins, etc, must be in either "unicode little endian" or "unicode big endian"

(though choose "unicode (little endian)" though, that's the default used on Intel/Windows platforms..

"UTF-8" is also not supported, btw...

The script files themself (the JS files) can be in ANSI...

So:

quote:
Originally posted by Lenain
Should we always use "USC-2 little endian" as default encoding?
yes
RE: Encoding of XML files? by Eljay on 06-28-2006 at 06:38 PM

quote:
Originally posted by MeEtc
Save the script in Unicode.

wtf? he wasnt on about scripts, he was on about xml files.

and no it shouldnt be saved in UCS-2 but UTF-16 (according to the documentation).

ignore that, thats for other languages.
RE: Encoding of XML files? by Lenain on 06-28-2006 at 07:20 PM

Thanks for these answers!

I think this deserve to be added to the scripting documentation... it's a bit frustrating to seek for this error for..... errr... what? Half an hour? :P

Btw, thanks again!


RE: Encoding of XML files? by mathieumg on 06-29-2006 at 03:17 AM

It is in the documentation actually...


RE: Encoding of XML files? by rob_botch on 06-29-2006 at 09:19 AM

I agree that it wasn't very clear about the encoding. I also resorted to the forums to find out how to make working windows!


RE: Encoding of XML files? by Lenain on 06-29-2006 at 12:12 PM

I haven't see it... i'll check it  later ^^, and... about the Image Element?

I success to get it work using tags of interfaces XML files of Messenger Plus (like those in the configuration...) no documentation about it too?

code:
            <Element xsi:type="ImageElement" Id="ImgTitle">
                <Position Top="4" Left="8"/>
                <Image><Name>title-contactlistcleanup</Name></Image>
            </Element>

Is title-contactlistcleanup the jpg image we can find in MsgPlusLiveRes.dll?
How can we insert the path for our images to get the XML file find it out?

(Have to make a new thread for it?)

Thanks :D
RE: RE: Encoding of XML files? by CookieRevised on 06-29-2006 at 12:18 PM

[OFF TOPIC]

quote:
Originally posted by Lenain
I success to get it work using tags of interfaces XML files of Messenger Plus (like those in the configuration...) no documentation about it too?
It is in the documentation, search for "ImageElement"

and the topic "PlusWnd::ImageElmt_SetImageFile" explains what the path is and how it is handled (topic will also be listed when you search for "ImageElement")

[/OFF TOPIC]
RE: Encoding of XML files? by Lenain on 06-29-2006 at 12:23 PM

Sorry, got to open my eyes! T_T

Thx anyway... ^^