Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
问题是1251和1252不一样。
let s = "സൗപർണിക" let d = s.data(using: .windowsCP1252) let s2 = String(data: d!, encoding: .utf8) // "സൗപർണിക"