I try to make an array, the array name is in english,
the array item is a channel in hebrew...
for some reason when I try to reach the var in that array item
it get nothing, it says it not exist
is there a problem with arrays items and languages?>
arrayname($hebchan) something-english-or-hebrew
Snapple
There are 10 kind of people here, the one's who know binary code and the one's who don't.
hmm... the var is something info by two possibilties:
adding with a command, when the egg get a command
if the array in the item is empty it uses
lappend opes($chan) "something"
if it's not empty:
set opes($chan) [linsert $opes($chan) end "something else"]
the second possibility is when the egg load it takes the info from a file db
which contains like the following:
set opes(#Help) {
"something"
"something else..."
}
In english channel names it works great, in hebrew chan names not.
Snapple
There are 10 kind of people here, the one's who know binary code and the one's who don't.
Snapple wrote:thanks but
someone have other idea's please?
You don't seem capable of trying out the solutions suggested to you, so why bother asking? This is the 3rd time you start a thread about this subject and I already gave you a working solution in the previous thread. (if you'd care to try it).
It seems like the problem occur when reading the hebrew variable names from the file, so the problem must be caused by using the wrong encoding when reading the file.
And btw: you can use 'lappend' no matter what...'linsert' is slower and using it like you do makes no sense.
Snapple wrote:the md5 is "working" but when I try to get the var, it says blank (not NULL)
Huh? "" or the word "blank"?
[encoding convertfrom [encoding system] $channel] should be == the channel name read from the file. This converted channel name should appear correctly in data sent to irc/files, but not in dcc chat (iirc).
Since reading the file using the right encoding seems impossible, this ugly hack might be your only choice :/