I send to server using @FormUrlEncoded. When I send strings to server, I get the requestbody like this
Content-Length: 14
Authorization:
nick=%E3%85%8A
So I treid addInterceptor. interceptor
val requestBuilder = original.newBuilder()
.addHeader("Authorization",token)
.addHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8")
.url(originalHttpUrl)
ApiInterface
@FormUrlEncoded
@POST("nickCheck")
fun checkNickName(
@Fiel("nick") nick: String
) :Call<NickCheckResultData>
But It didn't work. english and numbers are ok, but not my language. how to fix it? Also I tried settings->file encoding -> change utf-8