Check out example codes for "remove ascii characters from string ruby". It will help you in understanding the concepts better.
Code Example 1
s.gsub!(/\P{ASCII}/, '')
Code Example 2
s.delete!("^\u{0000}-\u{007F}")
Learn ReactJs, React Native from akashmittal.com