我在使用希伯来语文件名suggestedFilename
时遇到问题。
我正在发送这样的回复:
_fileName = [response suggestedFilename];
但是例如NSURLResponse
是这样的:
<NSHTTPURLResponse: ........> { URL: https://SOMETHINGSOMETHINGSOMETHING/A%D7%91%D7%93%D7%99%D7%A7%D7%94%20%D7%A2%D7%9D%20%D7%90%D7%95%D7%AA.txt } { Status Code: 200, Headers {
"Accept-Ranges" = (
bytes
);
Connection = (
"Keep-Alive"
);
"Content-Disposition" = (
"Attachment; filename=\"A\U00d7\U0091\U00d7\U0093\U00d7\U0099\U00d7\U00a7\U00d7\U0094 \U00d7\U00a2\U00d7\U009d \U00d7\U0090\U00d7\U0095\U00d7\U00aa.txt\""
);
"Content-Length" = (
0
);
"Content-Type" = (
"text/plain"
);
Date = (
"Sun, 04 Mar 2018 15:20:41 GMT"
);
Etag = (
"SOMETHING"
);
"Keep-Alive" = (
"timeout=2, max=100"
);
"Last-Modified" = (
"Wed, 28 Feb 2018 12:46:52 GMT"
);
Server = (
SOMETHING
);
Vary = (
"User-Agent"
);
"X-Frame-Options" = (
SAMEORIGIN
);
}
}
我进入_filename:A××××§× ×¢× ××ת.txt
代替:Aבדיקה עם אות.txt
任何想法?