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.

öäå in tcl with 1.7

Old posts that have not been replied to for several years.
Locked
g
greyhound
Voice
Posts: 12
Joined: Sat Feb 02, 2002 8:00 pm
Location: Sweden
Contact:

öäå in tcl with 1.7

Post by greyhound »

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.
http://www.riceri.com - Home if EggGUI.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

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.
g
greyhound
Voice
Posts: 12
Joined: Sat Feb 02, 2002 8:00 pm
Location: Sweden
Contact:

Post by greyhound »

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 :) )
http://www.riceri.com - Home if EggGUI.
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

What problems are you having? 1.6 works pretty well with those chars.
g
greyhound
Voice
Posts: 12
Joined: Sat Feb 02, 2002 8:00 pm
Location: Sweden
Contact:

Post by greyhound »

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.
http://www.riceri.com - Home if EggGUI.
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

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.
g
greyhound
Voice
Posts: 12
Joined: Sat Feb 02, 2002 8:00 pm
Location: Sweden
Contact:

Post by greyhound »

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. :)
http://www.riceri.com - Home if EggGUI.
Locked