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:

  1. what encoding of input? make sure it's in utf-8.
  2. are running input through filter/function might change encoding? make sure filter/function produces utf-8 also.
  3. prior checking backend receives, change client submit to http://httpbin.org/post , check result.
  4. if receive correct submission in httpbin, , bad submission in backend, problem not in ahc in backend.
  5. if receive bad submissions in both httpbin , backend, data being sent originally bad or in wrong encoding.

i hope helps find problem quickly.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -