title: Replace accented or special characters using sed or tr unix command using Unicode Code or Hex
body: <p>I wonder if I can use character set found in <a href="http://www.utf8-chartable.de/unicode-utf8-table.pl?utf8=0x&amp;unicodeinhtml=hex" rel="nofollow">http://www.utf8-chartable.de/unicode-utf8-table.pl?utf8=0x&amp;unicodeinhtml=hex</a> to replace accented or special characters using sed or tr. </p>
  
  <p>I have a script that uses sed command. Sometimes it does not work :(</p>
  
  <p>it goes like this: </p>
  
  <pre><code>sed -e "s/\"//g" \
                  -e "s/\'//g" \
                  -e "s/[$]/S/g" \
                  -e "s/%//g" \
                  -e "s/&amp;/E/g" \
                  -e "s/@/a/g" \
                  -e "s/\^//g" \
                  -e "s/\`//g" \
                  -e "s/|//g" \
                  -e "s/~//g" \
                  -e "s/¡/i/g" \
                  -e "s/¨//g" \
                  -e "s/\´//g" \
                  -e "s/¢/c/g" \
                  -e "s/£//g" \
                  -e "s/§//g" \
                  -e "s/¬//g" \
                  -e "s/°/o/g" \
                  -e "s/·/./g" \
                  -e "s/¹/1/g" \
                  -e "s/²/2/g" \
                  -e "s/³/3/g" \
                  -e "s/¿//g" \
                  -e "s/ª/a/g" \
                  -e "s/à/a/g" \
                  -e "s/á/a/g" \
                  -e "s/â/a/g" \
                  -e "s/ã/a/g" \
                  -e "s/ä/a/g" \
                  -e "s/å/a/g" \
                  -e "s/æ/ae/g" \
  </code></pre>
  
  <p>Os, I am thinking if I use hex or octal unicode codes to be used in sed, it would work. But I do not know how...</p>
  
  <pre><code>e.g. echo ¢ | sed 's/\x{00A2}/cent/g'
  </code></pre>
  
  <p>I appreciate your help.</p>