0

In my Java App, I want to pass individual bytes of information to a php script via POST. In order to do that, I convert the byte[] into a String. Now, which charset is best for this operation? I want to keep the amount of data transmitted as tiny as possible. Right now, I'm using ISO-8859-1, but i was worried, as it contains '?' and '=', whicht I thought, might make php interpret the data wrong...

4

1 回答 1

0

所以,我发现使用 Base64 编码可能是实现这一目标的最佳方法^^

我使用了这个类,并修改它以使用 _ - ~ 作为特殊字符,而不是 / = +

于 2013-04-20T12:19:34.890 回答