It seems that you’ve identified the issue pretty clearly, so:
How do we get from “the API” to “that URL”? If there’s any of your code in that process, that’s where I would work on fixing this (by converting what you are being given by the API, which appears to be ISO-8859-1, into Unicode). If that’s not possible, then I would try to pass this error text via another mechanism that doesn’t go through Ionic’s Config.
I can’t think of any other sensible thing to do on Ionic’s part. Given no other mechanism for declaring encoding, UTF-8 seems to me the only reasonable choice.
So, in summary, I would work to get these API return values into Unicode as soon as possible, so that none of the rest of your app has to worry about unusual character encoding.
As a matter of fact it is not a API exactly. It is part of an authentication proccess. It works with redirects like SAML. So it is the URL that brings the user back to my application after an authentication error.
My suspicius regarding to a bug is based on the fact it works in a common angular application without using ionic.
For those who is suffering because the same problem… that is a workaround…
Put these lines of code in the main.ts file
let baseUrl = ${window.location.protocol}//${window.location.host}${window.location.pathname}; let search = new URLSearchParams(window.location.search);