android - Loopj messing special characters before sending them through a request -
i'm trying send special characters through http request, i'm using loopj http client. problem when try send special characters i.e. "áéíóú" request goes out characters "·ÈÌÛ˙", causing issues on server sider.
i've gone through loopj code , couldn't find relative recoding string or it. in worst case seems encoded in utf-8 supports characters.
hope can help.
best regards.
i guessing mean asynchttpclient library, correct?
ahc defaults encoding i/o in utf-8. due lack of source code, point investigate following:
- what encoding of input? make sure it's in utf-8.
- are running input through filter/function might change encoding? make sure filter/function produces utf-8 also.
- prior checking backend receives, change client submit to http://httpbin.org/post , check result.
- if receive correct submission in httpbin, , bad submission in backend, problem not in ahc in backend.
- if receive bad submissions in both httpbin , backend, data being sent originally bad or in wrong encoding.
i hope helps find problem quickly.
Comments
Post a Comment