FilePicker on iOS: double quotes (0x22) in picked json file replaced by 0xAB («) the 1st time it is opened+read #22127
Labels
area-essentials
Essentials: Device, Display, Connectivity, Secure Storage, Sensors, App Info
platform/iOS 🍎
t/bug
Something isn't working
Description
When using FilePicker on iOS to pick a json file, on a real device, the 1st time the file is picked its text content is not the original content. Instead every double quotes are replaced into the '«' char, and spaces after that char is replaced by a non breaking space (NBSP, 0xA0).
If picking the same file a second time, it is loaded as expected, its content is the original unchanged one: with normal double quotes and normal spaces.
On Android there is no issue, everything is working as expected the 1st time.
That code is upgraded from a Xamarin app, and is working perfectly on iOS with the Xamarin version of the app.
Steps to Reproduce
Also, I tried to use
UIType.Json
in the code below instead of"public.json"
butUIType
can't be found in net8 ? Any clue ?Link to public reproduction project repository
No response
Version with bug
8.0.21 SR4.1
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
17.4.1
Did you find any workaround?
No.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: