Hi, I discovered a weird issue with iOS 17. Everything is working fine on iOS 16. Encoding an ASCII string with JSONEncoder is not working from iOS 17.
For example: I have an image, convert it to a string using ASCII encoding, and then, add this string into an object. I take that object and using JSONEncoder, I try to encode it to send It to the server.
Result:
On iOS16: Everything works as expected. Example of my image after encoding:
ÿØÿà\0\u{10}JFIF\0\u{01}\u{02}\u{01}\0H\0H\0\0ÿá\u{0C}\u{10}Exif\0\0MM\0*\0\0\0\u{08}\0\u{06}\u{01}\u{12}\0\u{03}\0\0\0\u{01}\0\u{03}\0\0\u{01}\u{1A}\0\u{05}\0\0\0\u{01}\0\0\0V\u{01}\u{1B}\0\u{05}\0\0\0\u{01}\0\0\0^\u{01}(\0\u{03}\0\0\0\u{01}\0\u{02}\0\0\u{02}\u{13}\0\u{03}\0\0\0\u{01}\0\u{01}\0\0i\0\u{04}\0\0\0\u{01}\0\0\0f\0\0\0À\0\0\0H\0\0\0\u{01}\0\0\0H\0\0\0\u{01}\0\u{07}\0\0\u{07}\0\0\0\u{04}................
on iOS17: I received a cut string Example of my image after encoding:
ÿØÿà
Just that. It's stops at \0
Am I missing something?