I need to convert several special characters and pass them in a variable. I am trying to perform a <sandr> but it doesn't seem to work. Here is an example of some of the characters.
<sandr "<" "<" $iso_in>
<sandr ">" ">" $ret>
<sandr "\&" "&" $ret>
<sandr '\"' '"' $ret>
<sandr "'" "'" $ret>
<sandr "¡" "¡" $ret>
<sandr "¢" "¢" $ret>
<sandr "£" "£" $ret>
<sandr "¤" "¤" $ret>
<sandr "¥" "¥" $ret>
<sandr "¦" "¦" $ret>
<sandr "§" "§" $ret>
<sandr "¨" "¨" $ret>
<sandr "©" "©" $ret>
.
.
.etc..
Can this be done with rex? I tried using fmt & send but I was unable to get my output into a variable. I also tried loading them into a table, however, the characters were converted to something else when I performed the insert.
I'm sure there's more than one way to handle it - just looking for the best method for maintenance, maintainability, structure, etc...
<sandr "<" "<" $iso_in>
<sandr ">" ">" $ret>
<sandr "\&" "&" $ret>
<sandr '\"' '"' $ret>
<sandr "'" "'" $ret>
<sandr "¡" "¡" $ret>
<sandr "¢" "¢" $ret>
<sandr "£" "£" $ret>
<sandr "¤" "¤" $ret>
<sandr "¥" "¥" $ret>
<sandr "¦" "¦" $ret>
<sandr "§" "§" $ret>
<sandr "¨" "¨" $ret>
<sandr "©" "©" $ret>
.
.
.etc..
Can this be done with rex? I tried using fmt & send but I was unable to get my output into a variable. I also tried loading them into a table, however, the characters were converted to something else when I performed the insert.
I'm sure there's more than one way to handle it - just looking for the best method for maintenance, maintainability, structure, etc...