I would like the list that is stored in the cursong variable, if present the character "Ã" is removed.
But I do not want to replace the space or another character, simply remove it.
Example: if the cursong variable returns: We are the wÃorld
To return: We are the world
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
set pos [lsearch $cursong "Ã"]
if {$pos != -1} {
set cursong [lreplace $cursong $pos $pos]
}
But this will replace only the first match it will find, meaning if you got two à characters then only the first one will be replaced. To remove all the occurrences of this character you could use string map instead: