var unicodeString = "Dog???" print("UTF-8 Codes: ") for code in unicodeString.utf8 { print("\(code) ") } print("\n") print("UTF-16 Codes: ") for code in unicodeString.utf16 { print("\(code) ") }
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more