This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post . Click the X in the top right-corner of this box to dismiss this message.
Old posts that have not been replied to for several years.
greyhound
Voice
Posts: 12 Joined: Sat Feb 02, 2002 8:00 pm
Location: Sweden
Contact:
Post
by greyhound » Thu Aug 14, 2003 3:05 pm
How is the work going on fixing so ö ä å works in tcl-scripts on eggdrop 1.7?
I am thinking of makeing my script to a C module but i don't know if it is worth it.
ppslim
Revered One
Posts: 3914 Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England
Post
by ppslim » Fri Aug 15, 2003 7:00 am
The work is going well, in theory.
Tcl will no longer be a internal part of eggdrop, and won't be needed to even compile it.
As such, handling should be pretty simple.
However, the structure of the modules system is open to major changes at all times, so coding for it at thsi time would be pointless.
1.7 Is not even Alpha quality yet.
greyhound
Voice
Posts: 12 Joined: Sat Feb 02, 2002 8:00 pm
Location: Sweden
Contact:
Post
by greyhound » Fri Aug 15, 2003 7:16 am
Ok, that is great to know.
Then i will just wait and put that script on ice for a while.
THANKS!! (This is also for your other replys that i never thanked you for
)
stdragon
Owner
Posts: 959 Joined: Sun Sep 23, 2001 8:00 pm
Contact:
Post
by stdragon » Fri Aug 15, 2003 1:20 pm
What problems are you having? 1.6 works pretty well with those chars.
greyhound
Voice
Posts: 12 Joined: Sat Feb 02, 2002 8:00 pm
Location: Sweden
Contact:
Post
by greyhound » Fri Aug 15, 2003 2:59 pm
When you use this in the script yes, but i download a webpage with those chars in and then ä becomes "ä".
and if you do a search here on this forum you will find more who have the same problem.
It had something to do with TCL and UTF-8.
stdragon
Owner
Posts: 959 Joined: Sun Sep 23, 2001 8:00 pm
Contact:
Post
by stdragon » Fri Aug 15, 2003 4:47 pm
If you're downloading webpages with tcl, such as with the http.tcl package, the version of eggdrop you use will make no difference. If you want, you can post the code you're having trouble with and maybe someone can see what's wrong with it.
greyhound
Voice
Posts: 12 Joined: Sat Feb 02, 2002 8:00 pm
Location: Sweden
Contact:
Post
by greyhound » Sat Aug 16, 2003 6:41 am
I can't find the post i was reading about this problem.
I added this code before i printed the data to the chan and then it worked...
Code: Select all
regsub -all -nocase -- "ä" $html "ä" html
regsub -all -nocase -- "ö" $html "ö" html
regsub -all -nocase -- "å" $html "å" html
And when i think one more time this codes are html codes.... I will go and sit in the corner.