Home > Mobile >  Call WeChat API to create card voucher, has been to 47001, the data is not utf8
Call WeChat API to create card voucher, has been to 47001, the data is not utf8

Time:11-05

URL realUrl=new URL(url);
HttpURLConnection conn=(HttpURLConnection) realUrl. OpenConnection ();
conn.setRequestMethod("POST");
Conn. SetDoOutput (true);
Conn. SetDoInput (true);
Conn. SetUseCaches (false);
Conn. SetRequestProperty (" Connection ", "Keep Alive -");
Conn. SetRequestProperty (" Charset ", "utf-8");

Set the code, has been submitted to the fault, use WeChat debugging tools and postman test are no problem


{" errcode ": 47001," errmsg ":" data format error hint: i1hna08955675 [6] d
Ata is not utf8 "}
  • Related