egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

HOW:enabling/switching to UTF-8 or CentralEuropean encoding?

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
burek
Voice


Joined: 13 Mar 2006
Posts: 1

PostPosted: Mon Mar 13, 2006 5:28 pm    Post subject: HOW:enabling/switching to UTF-8 or CentralEuropean encoding? Reply with quote

Hi everybody,

I apologize if this question has been asked before, but I couldn't find the answer even after searching this forum, so, here it is.

Shortly, I have a working tcl script on my eggdrop which collects some data from a certain web site and parses it before displaying the data on the irc channel. Ok, so, the only problem here is the web page is UTF-8 encoded, so I get all the text correct except for some characters which, obviously don't display when putlog-ed on irc channel. And not only that, those characters even stop printing of the other characters after them.

Lets say I have a string (on the web page) like this:
"abcdefXghijk" (where X is a double byte UTF-8 encoded letter)

after I grab the page in the buffer and print it with a putlog on irc, I get this:
"abcdef"
and that's it. I can guess it has something to do with the null character or so, but to be honest I don't know how to solve this..

So, I've seen some posts about:
[encoding convertfrom identity $a]
or something like that, but I don't have it in my documentation, and I would like to ask if you can help me how to solve this problem..

P.S. I'm using egghttp.tcl for async socket connections, but I don't think it's the one who is responsible for this behavior..?


Thanx a lot in advance,
burek.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber