Page 1 of 1

foreign characters (sending) -> solved

Posted: Wed Mar 12, 2003 17:46 pm
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-,¡,¡,¿,¿,ñ,ñ,Ñ,Ñ,á,á,é,é,í,í,ó,ó,ú,ú,ÃÂ

Posted: Wed Mar 12, 2003 22:00 pm
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