urlConnection.setRequestProperty("content-type", "application/x-www-form-urlencoded");
urlConnection.setRequestProperty("something", "***UTF-8 characters here***");
In the server side (nodejs), something == ?????. How can we send those characters in header in UTF-8?
HTTP header values can be US-ASCII characters only.
You can URL-encode characters outside this range, thereby only sending allowed characters.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.