| View previous topic :: View next topic |
| Author |
Message |
daigo Voice
Joined: 27 Jun 2014 Posts: 37
|
Posted: Mon Jul 28, 2014 6:52 pm Post subject: How to make special characters (foreign) appear properly? |
|
|
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 |
|
 |
Get_A_Fix Master

Joined: 07 May 2005 Posts: 206 Location: New Zealand
|
Posted: Tue Jul 29, 2014 3:35 am Post subject: |
|
|
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  _________________ 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 |
|
 |
daigo Voice
Joined: 27 Jun 2014 Posts: 37
|
Posted: Tue Jul 29, 2014 10:08 am Post subject: |
|
|
| 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 |
|
 |
thommey Halfop
Joined: 01 Apr 2008 Posts: 73
|
Posted: Sat Sep 06, 2014 8:34 am Post subject: |
|
|
| 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 |
|
 |
|