我正在I\\U00b4m
取代I'm
。如何从字符串中解码或替换此\\U00b4
?
I\\U00b4m looking for the only one man in my life.
答案 0 :(得分:-3)
简单方法:
let aString = "This is my string"
let newString = aString.replacingOccurrences(of: "\U00b4", with: "", options: .literal, range: nil)