What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Encoding of XML files?

Encoding of XML files?
Author: Message:
Lenain
New Member
*


Posts: 4
Joined: Jun 2006
O.P. Grin  Encoding of XML files?
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? ^^
06-28-2006 04:14 PM
Profile E-Mail PM Find Quote Report
MeEtc
Patchou's look-alike
*****

Avatar
In the Shadow Gallery once again

Posts: 2200
Reputation: 60
38 / Male / Flag
Joined: Nov 2004
Status: Away
RE: Encoding of XML files?
Save the script in Unicode.
[Image: signature/]     [Image: sharing.png]
I cannot hear you. There is a banana in my ear.
06-28-2006 06:28 PM
Profile PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Encoding of XML files?
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

This post was edited on 06-28-2006 at 06:44 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
06-28-2006 06:37 PM
Profile PM Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: Encoding of XML files?
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.

This post was edited on 06-28-2006 at 06:39 PM by Eljay.
06-28-2006 06:38 PM
Profile PM Find Quote Report
Lenain
New Member
*


Posts: 4
Joined: Jun 2006
O.P. RE: Encoding of XML files?
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!
06-28-2006 07:20 PM
Profile E-Mail PM Find Quote Report
mathieumg
Full Member
***


Posts: 181
Reputation: 2
35 / Male / Flag
Joined: May 2004
RE: Encoding of XML files?
It is in the documentation actually...
Official MessengerPlus! Live French Translator
Official StuffPlug 3 French Translator

:)
06-29-2006 03:17 AM
Profile E-Mail PM Web Find Quote Report
rob_botch
Full Member
***

Avatar

Posts: 180
Reputation: 4
34 / Male / Flag
Joined: Apr 2006
RE: Encoding of XML files?
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!
06-29-2006 09:19 AM
Profile E-Mail PM Web Find Quote Report
Lenain
New Member
*


Posts: 4
Joined: Jun 2006
O.P. RE: Encoding of XML files?
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
06-29-2006 12:12 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: Encoding of XML files?
[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]
.-= A 'frrrrrrrituurrr' for Wacky =-.
06-29-2006 12:18 PM
Profile PM Find Quote Report
Lenain
New Member
*


Posts: 4
Joined: Jun 2006
O.P. RE: Encoding of XML files?
Sorry, got to open my eyes! T_T

Thx anyway... ^^
06-29-2006 12:23 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On