Bug Report Checklist
Description
ApiClient throws an exception when building request with header value that contains non-ascii characters. In our case this is uploaded file name.
openapi-generator version
7.10.0
OpenAPI declaration file content or url
Any spec with header parameters
Generation Details
Generator: kotlin
Library: jvm-okhttp4 (default)
Steps to reproduce
Try to fill header value with non-ascii string.
Related issues/PRs
Similar issue for java client: #9053
Suggest a fix
Okhttp Headers.Builder has a addUnsafeNonAscii method. We should add an option to use this method for specific clients.