mIRC Home    About    Download    Register    News    Help

Print Thread
SOCKET: Transferring files with funny characters. #172207 07/03/07 10:06 AM
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline OP
Hoopy frood
OP Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
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?

Re: SOCKET: Transferring files with funny characters. [Re: DJ_Sol] #172209 07/03/07 10:47 AM
Joined: Jul 2006
Posts: 107
L
LonDart Offline
Vogon poet
Offline
Vogon poet
L
Joined: Jul 2006
Posts: 107
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?)


LonDart
Re: SOCKET: Transferring files with funny characters. [Re: LonDart] #172237 07/03/07 06:14 PM
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline OP
Hoopy frood
OP Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
hey good idea I should use mirc $chr 's. laugh Thanks!

Re: SOCKET: Transferring files with funny characters. [Re: DJ_Sol] #172262 08/03/07 02:52 AM
Joined: Jan 2007
Posts: 31
P
piker Offline
Ameglian cow
Offline
Ameglian cow
P
Joined: Jan 2007
Posts: 31
can i have your updater script please