foreign characters (sending) -> solved

Archive of all threads restored from the backup after the forum hijack
Locked
vIndEx

foreign characters (sending) -> solved

Post by vIndEx »

replace this part of the code:
on *:INPUT:@:{
if (@*@*@ICQ iswm $active) { return }
if ( @ isin $right($active,$calc($len($active)-1))) {
aline -p @ $+ $right($active,$calc($len($active)-1)) $timestamp 14 $+ %msn.name says:
aline -p @ $+ $right($active,$calc($len($active)-1)) $1-
sockwrite -n chat. $+ $right($active,$calc($len($active)-1)) MSG %msn. [ $+ [ $right($active,$calc($len($active)-1)) ] ] N $calc($len($1-) + 132)
sockwrite -n chat. $+ $right($active,$calc($len($active)-1)) MIME-Version: 1.0
sockwrite -n chat. $+ $right($active,$calc($len($active)-1)) Content-Type: text/plain; charset=UTF-8
sockwrite -n chat. $+ $right($active,$calc($len($active)-1)) X-MMS-IM-Format: FN=Microsoft%20Sans%20Serif; EF=; CO=0; CS=1; PF=22
sockwrite -n chat. $+ $right($active,$calc($len($active)-1))
sockwrite chat. $+ $right($active,$calc($len($active)-1)) $replacecs($1-,å,Ã¥,ä,ä,ö,ö,Å,Ã…,Ä,Ä,Ö,Ö)
addlog $right($active,$calc($len($active)-1)) $urlencode(%msn.name) $1-
}
}

for this:

on *:INPUT:@:{
if (@*@*@ICQ iswm $active) { return }
if ( @ isin $right($active,$calc($len($active)-1))) {

;; (NEW) NEW VARIABLE -> ADD YOUR OWN FOREIGN CHARACTERS
set %text_to_send $replacecs($1-,¡,¡,¿,¿,ñ,ñ,Ñ,Ñ,á,á,é,é,í,í,ó,ó,ú,ú,ÃÂ
andyc
MSN for mIRC Creator
Posts: 243
Joined: Sun Dec 01, 2002 21:26 pm

Post by andyc »

All of this will be included in the script, i have now support for most languages, i will upload it on 13th March :)

Andy
Locked