How to convert characters
Posted: Thu Oct 25, 2001 11:43 am
I want to convert characters with diacritical marks to their closest keyboard equivalents, so that searches without the diacritics will find the information. However, what I thought would work isn't working. For example, if I try to convert é to e in string $str, I use
<sandr "\x82" "e" $str>
but $ret is the same as $str. My ASCII chart lists 82 as the hex value for é. Is there something wrong with my method, or is there a mismatch between my ASCII chart (http://www.cdrummond.qc.ca/cegep/inform ... /ascii.htm) and Texis's?
Thanks,
David
<sandr "\x82" "e" $str>
but $ret is the same as $str. My ASCII chart lists 82 as the hex value for é. Is there something wrong with my method, or is there a mismatch between my ASCII chart (http://www.cdrummond.qc.ca/cegep/inform ... /ascii.htm) and Texis's?
Thanks,
David