New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document the need to set quarkus.native.add-all-charsets = true in HTTP extensions #599
Comments
Thinking of this again, the advantages of producing NativeImageEnableAllCharsetsBuildItem by AHC, HTTP and other extensions would be the following:
An apparent disadvantage would be that the application developer might know that his app is never going to need any encoding beyond the set available by default. This would be the case when the developer has both the client and server under his control. Always producing NativeImageEnableAllCharsetsBuildItem would just make the application unnecessarily bigger. I am not sure if setting
Maybe to get best of both worlds, we could have our own per-extension props, e.g. Does anybody have an opinion on this? |
Having component specific property is misleading i.e. you can set one it true for one component and fase for another but the result won’t be that one component support all the charset and the other one not. It looks to me a generic quarkus issue than a camel one so we should probably let the developers choose. |
I was about to say that we are letting the 80% of devs to learn the hard way but then tried to find some data about the usage of the individual encodings. Found only https://w3techs.com/technologies/overview/character_encoding that is perhaps a bit Western/US-centric because it is considering just 10M most popular sites, popularity being defined by data from Alexa. But anyway, UTF-8 is most probably dominating nowadays. For the record, the encodings available by default are: Charset.defaultCharset(), US-ASCII, ISO-8859-1, UTF-8, UTF-16BE, UTF-16LE, UTF-16 Let's just document on the individual extension pages that the users may need to set |
…ts = true in HTTP extensions
…ts = true in HTTP extensions
AHC and HTTP components are the prominent candidates.
Why: They offer the option to decode the response body using the encoding sent by the server which can be any encoding.
#597 (comment)
The text was updated successfully, but these errors were encountered: