Here is the regular expression I use to remove them:
str.gsub!(/[\x80-\xff]/, '')
I'm sure this won't work in many cases but with my text it does the job just fine.
A collection of computer systems and programming tips that you may find useful.
Brought to you by Craic Computing LLC, a bioinformatics consulting company.
str.gsub!(/[\x80-\xff]/, '')
No comments:
Post a Comment