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 to make special characters (foreign) appear properly?

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


Joined: 27 Jun 2014
Posts: 37

PostPosted: Mon Jul 28, 2014 6:52 pm    Post subject: How to make special characters (foreign) appear properly? Reply with quote

I am writing a script that includes responding with characters like: (╯°□°)╯︵ ┻━┻

But these characters are not displaying properly from eggdrop, even though my IRC client can copy/paste and also view them from other users that have said it in the channel.

Also, it is not reading the characters properly (e.g. I tried to write a script that whenever someone says "(╯°□°)╯︵ ┻━┻" then my bot responds with something else. It shows up in eggdrop log as "(â¯Â°â¡Â°)â¯ï¸µ â»ââ»" so I tried to put "(â¯Â°â¡Â°)â¯ï¸µ â»ââ»" in the script, but it still doesn't respond to that).

How can I include these characters in eggdrop?
Back to top
View user's profile Send private message
Get_A_Fix
Master


Joined: 07 May 2005
Posts: 206
Location: New Zealand

PostPosted: Tue Jul 29, 2014 3:35 am    Post subject: Reply with quote

You'll have to regsubex all, or string map, then match with preset replies.

I am sure this is not the first post in egghelp about this, so there may also possibly be an answer available for you, if you search. I don't want to do everything for you, that is not how people learn. There is an answer though, so keep looking Smile
_________________
We explore.. and you call us criminals. We seek after knowledge.. and you call us criminals. We exist without skin color, without nationality, without religious bias.. and you call us criminals.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
daigo
Voice


Joined: 27 Jun 2014
Posts: 37

PostPosted: Tue Jul 29, 2014 10:08 am    Post subject: Reply with quote

I thought this is an issue with character sets in eggdrop, not a scripting issue. I already tried string map and there's no manual page for TCL regsubex
Back to top
View user's profile Send private message
thommey
Halfop


Joined: 01 Apr 2008
Posts: 73

PostPosted: Sat Sep 06, 2014 8:34 am    Post subject: Reply with quote

It might be caused by eggdrop not supporting Utf8 properly, you can try following the steps on http://eggwiki.org/Utf-8 to get it to work.
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 -> Eggdrop 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