Follow up of my previous post. For testing:
In partyline I got this:
Code: Select all
<awyeah> .tcl string map {"Š" "" "Œ" "" "Ž" "" "œ" "" "ž" "" "Ÿ" ""} "werŠŒytyrtŽewreœtrwežrwetertŸfg"
<adapter> Tcl: werytyrtewretrwerwetertfg
<awyeah> .tcl string match "*Œ*" "werŠytyrtŽewreœtrwežrwetertŸfg"
<adapter> Tcl: 0
<awyeah> .tcl string match "*Œ*" "werŠŒytyrtŽewreœtrwežrwetertŸfg"
<adapter> Tcl: 1
This indicates everything is working correctly in partyline.
Now check, when I load the tcl into the bot and then test.
For this proc, (tcl loaded into the bot):
Code: Select all
bind pub - !test testing
proc testing {n u h c t} {
set i [string map {"\x8A" "" "\x8C" "" "\x8E" "" "\x9C" "" "\x9E" "" "\x9F" ""} $t]
putserv "PRIVMSG #adapter :String map: $i"
if {[string match -nocase "*\x8C*" $t] || [string match -nocase "*\x9E*" $t]} {
putserv "PRIVMSG #adapter :Match found"
} else {
putserv "PRIVMSG #adapter :No match found"
}
}
and for the same string, I got these results:
Code: Select all
<awyeah> !test "werŠŒytyrtŽewreœtrwežrwetertŸfg"
<adapter> String map: "werŠŒytyrtŽewreœtrwežrwetertŸfg"
<adapter> No match found
Means there is definately something wrong.
Evidently, I also check for this proc:
Code: Select all
bind pub - !test testing
proc testing {n u h c t} {
set i [string map {"Š" "" "Œ" "" "Ž" "" "œ" "" "ž" "" "Ÿ" ""} $t]
putserv "PRIVMSG #adapter :String map: $t"
if {[string match -nocase "*Œ*" $t]} {
putserv "PRIVMSG #adapter :Match found"
} else {
putserv "PRIVMSG #adapter :No match found"
}
}
It also gave me the same result as above:
Code: Select all
<awyeah> !test "werŠŒytyrtŽewreœtrwežrwetertŸfg"
<adapter> String map: "werŠŒytyrtŽewreœtrwežrwetertŸfg"
<adapter> No match found
Further more as a conclusion from what I've read there might be 2 identified problems for this case:
1)
http://www.ascii.cl/htmlcodes.htm << this page lists that characters from the range \x80-\xBF (or \200-\277) are NOT defined in HTML 4 standard
2) From: /eggdrop/docs/known-problems
* High-bit characters are being filtered from channel names. This is a
fault of the Tcl interpreter, and not Eggdrop. The Tcl interpreter
filters the characters when it reads a file for interpreting. Update
your Tcl to version 8.1 or higher.
* Version 8.1 of Tcl doesn't support unicode characters, for example, è.
If those characters are handled in a script as text, you run into errors.
Eggdrop can't handle these errors at the moment.
However, strange as it may seem my shell provider has tcl version 8.4 and patch upto 8.4.11.
I think these major two are the basic problems, due to which my aim is not achievable. If anyone has anything to say or any comment, regarding my conclusion, please follow up my post.
Thanks,
JD