HttpClient wrong encoding in Content-Disposition
问题 I am POST-ing an image with HttpClient and it works well for files with Latin names, but as soon as a name contains any non-ASCII characters it gets transformed to a sequence of question marks. If I create an html form and use a browser to post the file, the file name is sent in UTF8 and the target server perfectly accepts it. using (var client = new HttpClient()) { var streamContent = new StreamContent(someImageFileStream); streamContent.Headers.Add( "Content-Disposition", "form-data; name=\