Ask a Question

Encoding of filename for MIME attachments

grooves
Occasional Contributor

Encoding of filename for MIME attachments

I'm using a REST service to upload files using MIME attachments.

It should work with Swedish characters but the web service expects the filename in the header to be encoded as utf-8 for non us-ascii characters to work.

 

Inspected the request from both SoapUI and Postman using Fiddler and Postman correctly sets it utf-8 automatically.

However, SoapUI does not and I can't figure out to set this. Tried changing the default file encoding in vmoptions, setting the ContentID according to RFC 2047 but without success.

 

When using RFC 2047 encoding actually only "name" gets set but not filename.

 

Any ideas?

3 REPLIES 3
grooves
Occasional Contributor

Curl also uses utf-8 which works but still no success in getting SoapUI to use utf-8.

nmrao
Community Hero

grooves
Occasional Contributor

Unfortunately that only sets the content type charset for a text payload (text/xml etc).

cancel
Showing results for 
Search instead for 
Did you mean: