| View previous topic :: View next topic |
| Author |
Message |
juanamores Master
Joined: 15 Mar 2015 Posts: 317
|
Posted: Sat Jul 18, 2015 10:21 pm Post subject: How to match latin accents ? |
|
|
| Code: | bind pub atov|n !test testing
proc testing {nick uhost hand chan text} {
set word "Cual es esta canción?"
if {[lindex [split [$text] 0 end] eq "$word" } {
more stuff..........
} |
No match word "canción" _________________ If you do not understand my ideas is because I can not think in English, I help me with Google Translate. I only speak Spanish. Bear with me. Thanks  |
|
| Back to top |
|
 |
SpiKe^^ Owner

Joined: 12 May 2006 Posts: 792 Location: Tennessee, USA
|
Posted: Sat Jul 18, 2015 11:10 pm Post subject: |
|
|
So what's wrong with just... | Code: | | if {$text eq $word} { | ...or even... | Code: | set word "Cual es esta canción\?"
if {[string match -nocase $word $text]} { |
_________________ SpiKe^^
Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
. |
|
| Back to top |
|
 |
juanamores Master
Joined: 15 Mar 2015 Posts: 317
|
Posted: Sun Jul 19, 2015 1:31 am Post subject: |
|
|
SpiKe^^ work perfectly  _________________ If you do not understand my ideas is because I can not think in English, I help me with Google Translate. I only speak Spanish. Bear with me. Thanks  |
|
| Back to top |
|
 |
|