The long standing behaviour in URLEncoder has been to use the CharsetEncoder replacement bytes if a character cannot be encoded.
The API documentation of URLEncoder.encode should spell that out and refer to {@link CharsetEncoder##cae}
See https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/nio/charset/CharsetEncoder.html#cae
Note: this will require a CSR
The API documentation of URLEncoder.encode should spell that out and refer to {@link CharsetEncoder##cae}
See https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/nio/charset/CharsetEncoder.html#cae
Note: this will require a CSR
- csr for
-
JDK-8318004 URLEncoder should specify that replacement bytes will be used in case of coding error
-
- Closed
-