I’ve been wracking my brain trying to figure this out for the last few hours.
I’m using Google Spreadsheets as my json backend, and when fetching data it doesn’t convert non-ASCII characters into unicode characters - so the json is filled with
’, etc. This originally wasn’t a problem when using an AJAX request in a Cordova app, or even on the local preview in Fuse (Windows), but on my Android device the entire json string isn’t received, resulting in an “Unexpected end of input” error. The amount of characters missing from the end of the json is exactly the amount of non-ASCII chars in the json.
I’m not sure if this is a bug, or a difference between how my computer and my device handle the http requests. I have not been able to test this on iOS/Mac.
My current workaround is replacing the characters in the spreadsheet itself using the substitute function, but this can only be a temporary solution.
Any help would be appreciated.