What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » headache: Special characters.

Pages: (3): « First [ 1 ] 2 3 » Last »
headache: Special characters.
Author: Message:
runarius
New Member
*


Posts: 12
Joined: Jul 2007
O.P. headache: Special characters.
I have a script which stores all my online contacts into a textfile(name,email,status and personalmessage). now, one of mye contacts(kristoffer) is using some special characters in his name, like the R with the circle around, which is causing some problems when I want to save the textfile. How do I avoid this?

Thanks
07-23-2007 10:29 AM
Profile E-Mail PM Find Quote Report
davidpolitis
Full Member
***


Posts: 371
Reputation: 16
Joined: Aug 2006
RE: headache: Special characters.
Have you tried changing the encoding of the text file to UTF-8?
07-23-2007 10:47 AM
Profile PM Find Quote Report
runarius
New Member
*


Posts: 12
Joined: Jul 2007
O.P. RE: headache: Special characters.
how do I do that?
07-23-2007 10:49 AM
Profile E-Mail PM Find Quote Report
davidpolitis
Full Member
***


Posts: 371
Reputation: 16
Joined: Aug 2006
RE: RE: headache: Special characters.
quote:
Originally posted by runarius
how do I do that?

Open the text document in Notepad, go to File --> Save File As.. and in the Save File As Dialog you'll see a drop-down labeled "Encoding:", select UTF-8 then save over the text document ;)

This post was edited on 07-23-2007 at 10:52 AM by davidpolitis.
07-23-2007 10:51 AM
Profile PM Find Quote Report
runarius
New Member
*


Posts: 12
Joined: Jul 2007
O.P. RE: headache: Special characters.
that didn't help much.
07-23-2007 11:03 AM
Profile E-Mail PM Find Quote Report
davidpolitis
Full Member
***


Posts: 371
Reputation: 16
Joined: Aug 2006
RE: RE: headache: Special characters.
quote:
Originally posted by runarius
that didn't help much.

What do you mean by much? Didn't help at all?

Anyway, you could try Unicode encoding, sorry if I'm not really helping at all. Also, if that doesn't work, you could maybe try changing the file format...

Unless your text editor isn't displaying them properly, try opening the text document in Wordpad ;)

This post was edited on 07-23-2007 at 11:09 AM by davidpolitis.
07-23-2007 11:05 AM
Profile PM Find Quote Report
runarius
New Member
*


Posts: 12
Joined: Jul 2007
O.P. RE: headache: Special characters.
tried setting it to unicode, nothing really happened. but I don't see how this could change anything, since isn't it the msn-plus-script that chooses the encoding and fileformat?

Also, the nickname I am trying to store holds alot of different odd characters. don't know which one of them causes the error.

It doesn't rally matter what the text-editor can see, I get an error in the debugger at the line where the function to store the nickname is.

This post was edited on 07-23-2007 at 11:11 AM by runarius.
07-23-2007 11:09 AM
Profile E-Mail PM Find Quote Report
davidpolitis
Full Member
***


Posts: 371
Reputation: 16
Joined: Aug 2006
RE: headache: Special characters.
the encoding affects it because if it isn't Unicode or UTF-8, the characters will just be shown as question marks...

You could also try opening the text document in Wordpad as I said above in my edited post ;)

This post was edited on 07-23-2007 at 11:11 AM by davidpolitis.
07-23-2007 11:10 AM
Profile PM Find Quote Report
runarius
New Member
*


Posts: 12
Joined: Jul 2007
O.P. RE: headache: Special characters.
it doesn't get stored at all becouse of the error... all other nicknames gets stored without any problems.
07-23-2007 11:11 AM
Profile E-Mail PM Find Quote Report
davidpolitis
Full Member
***


Posts: 371
Reputation: 16
Joined: Aug 2006
RE: headache: Special characters.
Could you please post the code you're using so I can look at the functions...?

Or maybe you could just PM me all of the code so I can try to get it to work ;)

This post was edited on 07-23-2007 at 11:24 AM by davidpolitis.
07-23-2007 11:12 AM
Profile PM Find Quote Report
Pages: (3): « First [ 1 ] 2 3 » Last »
« 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