title: Remove latin1 chars from a file
body: <p>My file is utf8 but contains several latin1 chars namely other foreign languages. My aim is to get rid of these chars using a Unix command. Earlier when i tried to achieve this by removing all the non-ASCII chars, the below command went ahead and removed all the accented chars as well. I wanted to retain the accented chars on the same hand i wanted to remove only the non-english(mandarain, japanese, korean, thai, arabic) terms from the file.</p>
  
  <pre><code>grep --color='auto' -P -n "[\x80-\xFF]" file.txt  -&gt; this command helped me remove non-ASCII chars but it also removes the accented chars(í, æ, Ö etc)...is it possible to get
  
  
  888|Jobin|Matt|NORMALSQ|YUOZ|IOP|OPO|洁|ID12|doorbell|geo@xyx.comd
  1011|ICE|LAND|邵|DUY|DUY|123|EOP|dataset1|geo@xyx.com
  53101|炜|GUTTI|RR|Hi|London|UK|WLU|GB|dataset1|陈
  สัอ |JOH|LIU|ABC|DUY|DUY|57T2P|EOP|unknown|geo@xyx.com
  เมื่รกเริ่ม|JOH|LIU|ABC|DUYសា|DUY|57T2P|EOP|unknown|geo@xyx.com
  || RAVI|OLE|Hi|London|UK|NA|GB|unknown| WELSH@WELSH.COM
  Rogério|Davies|Hi|USA|US|WLU|US|unknown| USA@WELSH.COM
  Balázs| Roque| Hi|USA|US|WLU|US|unknown| USA@WELSH.COM
  Johny|Peniç| Hi|USA|US|WLU|US|unknown| USA@WELSH.COM
   Mike|Mane| Hi | USA |US|WLU|US|unknown| USA@WELSH.COM
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>888|Jobin|Matt|NORMALSQ|YUOZ|IOP|OPO||ID12|doorbell|geo@xyx.comd
  1011|ICE|LAND||DUY|DUY|57T2P|EOP|dataset1|geo@xyx.com
  53101||GUTTI|RR|Hi|London|UK|WLU|GB|dataset1|
   |JOH|LIU|ABC|DUY|DUY|57T2P|EOP|unknown|geo@xyx.com
   |JOH|LIU|ABC|DUY|DUY|57T2P|EOP|unknown|geo@xyx.com
  || RAVI|OLE|Hi|London|UK|NA|GB|unknown| WELSH@WELSH.COM
  Rogério|Davies|Hi|USA|US|WLU|US|unknown| USA@WELSH.COM
  Balázs| Roque| Hi|USA|US|WLU|US|unknown| USA@WELSH.COM
  Johny|Peniç| Hi|USA|US|WLU|US|unknown| USA@WELSH.COM
  Mike|Mane| Hi | USA |US|WLU|US|unknown| USA@WELSH.COM
  </code></pre>