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.

detecting special characters ⚠️

Help for those learning Tcl or writing their own scripts.
Post Reply
User avatar
NewzNZ
Halfop
Posts: 68
Joined: Thu Mar 05, 2009 5:15 am
Contact:

detecting special characters ⚠️

Post by NewzNZ »

Hi there
Am using a script to pull headlines from an RSS feed & just wondering if there's a way to detect special characters in a string to set up an ignore?
One of the offending characters is: ⚠️

Have tried:
if {[string match *⚠️* $var]} {

and:
if {[string match *\⚠️* $var]} {

...but no luck. Am guessing perhaps the script language dosn't recognise these items?
Thanks in advance for any help/ideas...
User avatar
CrazyCat
Revered One
Posts: 1236
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

This is a known trouble with TCL and emoji.
You can have a look to https://forum.eggdrop.fr/Hack-anti-emoj ... -1974.html (sorry, in french) on the way to ride them off.
User avatar
NewzNZ
Halfop
Posts: 68
Joined: Thu Mar 05, 2009 5:15 am
Contact:

Post by NewzNZ »

Thanks for that...will take a look!
Post Reply