While Bob Sneidar's function should do the job of scrubbing weird characters 
from text, am unsure why he felt the need to construct that massive pCustomList 
variable. Seems to me that it would be simpler, and perhaps quicker, to do this 
instead:
function cleanASCII2 DerASCII  put "" into DerRezult
  repeat for each char CC in DerASCII    put charToNum (CC) into Fred    if 
Fred > 31 and Fred < 127 then put CC after DerRezult -- the full range of ASCII 
values for printable characters  end repeat  return DerRezultend cleanASCII2
The above code is not tested in any way. It's clearly not to be trusted with 
Unicode text, so which might be why Sheidar felt the need to go thru a somewhat 
more complicated procedure…
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to