Hi everyone,
when parsing a multipart response we are getting from a server we
need to integrate with basex raises the exception [1].
By forcing the mediatype (with override-media-type attribute) to text/plain we've been able to see that parts look something like [2].
Our suspect was that the multipart parser does not tolerate the quotes around UTF-8 but exploring the jungles of RFC they seem to be allowed as per an example of https://tools.ietf.org/html/rfc2045 that states:
Note that the value of a quoted string parameter does not include the quotes. That is, the quotation marks in a quoted-string are not a part of the value of the parameter, but are merely used to delimit that parameter value. In addition, comments are allowed in accordance with RFC 822 rules for structured header fields.Could we kindly have some feedback on this in order to avoid having to parse the whole multipart on our own?
Thank you very much.
Marco.
[1]
Unsupported encoding: java.nio.charset.IllegalCharsetNameException: "UTF-8"