mIRC Home    About    Download    Register    News    Help

Print Thread
sending unicode data across mirc socket #208704 27/01/09 02:58 AM
Joined: Sep 2008
Posts: 17
K
Kozical Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Sep 2008
Posts: 17
I am wondering. How do i go about translating Multi-byte mirc data to unicode during a sockwrite operation? .. I could do it in C++ however i would need to be able to hook the socket and send. This is a big ordeal to go through just to send in utf-8. Any Ideas?

Re: sending unicode data across mirc socket [Re: Kozical] #208706 27/01/09 03:25 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Did you try using $utfencode before sending the information via the socket?

And while I'm here, why did you post this in the Connection Issues section, as it seems to have nothing to do with connecting.

Re: sending unicode data across mirc socket [Re: RusselB] #208751 28/01/09 12:15 AM
Joined: Sep 2008
Posts: 17
K
Kozical Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Sep 2008
Posts: 17
Actually, thanks for that but it didn't do it. I posted this in the connection issues section because my question is referring to a socket connection to a HTTP website and that is considered a connection. So it seems the appropriate place wouldn't you agree?

Re: sending unicode data across mirc socket [Re: Kozical] #208757 28/01/09 12:33 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Based on the additional information in your reply, yes, I do agree that this could be classified as a Connection Issue.

Sorry my suggestion didn't work.

Re: sending unicode data across mirc socket [Re: RusselB] #208759 28/01/09 12:50 AM
Joined: Sep 2008
Posts: 17
K
Kozical Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Sep 2008
Posts: 17
no problem, glad you suggested that i haven't used that function in years. I would have never remembered it otherwise. I was scouring the help file last night. Yet it is the unlisted ones that are most useful, shamefully enough.