mIRC Homepage

SOCKET: Transferring files with funny characters.

Posted By: DJ_Sol

SOCKET: Transferring files with funny characters. - 07/03/07 10:06 AM

I have an auto updater socket script. It clear a mrc file and overwrites it from the file on my webserver. One file is the protections file and it has code to watch for a clear flood.

if ((
* isin $1-) || (* isin $1-)) {

When I download this, it loses the characters and leaves me with broken code.

if ((

isin $1-) {

Any ideas how I can get past this and still transfer the file through a socket?
Posted By: LonDart

Re: SOCKET: Transferring files with funny characters. - 07/03/07 10:47 AM

My thought:
Set your 'funny characters' to variables, using concatenation $+( ) and
ASCII character numbers $chr(N).

Code:
set %xyz $+($chr(226),$chr(128),$chr(169),$chr(42))

You can get the ascii number with $asc(C)

In a table I have, it says the Euro symbol should be 164, but 128 was what I needed to use.
(Must be an old table?)
Posted By: DJ_Sol

Re: SOCKET: Transferring files with funny characters. - 07/03/07 06:14 PM

hey good idea I should use mirc $chr 's. laugh Thanks!
Posted By: piker

Re: SOCKET: Transferring files with funny characters. - 08/03/07 02:52 AM

can i have your updater script please
© 2022 mIRC Discussion Forums