I have a problem that I was asked to put some of the parameters into HTTP header of the request. The web server (with jersey 1.17) will parse the parameters from the header fields. However, the values of the parameters should be formed by UTF-8. Is it possible to put an UTF-8 string in the HTTP header? If it is possible, how can I simulate it using rest client (such as RESTClient in Firefox plugin)?
I have tried to search for this question by google, and a question (What character encoding should I use for a HTTP header?) seems relative to my question. The response said that HTTP header use MIME encoding only when the character set is not ISO-8859-1. If this is true, how can I parse MIME encoding in jersey to get the correct UTF-8 string from the request header?
Many thanks!