I am working on customization of some system. I cannot change server-side code. Server is waiting for file with filename. Our customers usually use cyrillic, non-ASCII characters within filename. My form is used for nonHTML5 browsers and it looks like
<form action='http://someurl.ru' method='post' enctype="multipart/form-data">
<input id='fid' name="file" multiple="false" type="file" />
<input id='sub' type='submit'>
</form>
so, when this form is submitted i get something like
------WebKitFormBoundaryJgbfSe4B9AXNn2jO
Content-Disposition: form-data; name="file"; filename="крейзиНеАскиЧэрактэры.txt"
Content-Type: text/plain
My question is simple. How can i obligate browser to send filename urlencoded or file parameter with filename*=utf-8... header? It seems very simple, but i have spend hours already.
I have found similar question here UTF-8 text is garbled when form is posted as multipart/form-data but solution involves server changes, which i cannot do.
Any suggestions?