Android 发送utf8字符,并将改装作为查询参数

Android 发送utf8字符,并将改装作为查询参数,android,retrofit,retrofit2,okhttp,Android,Retrofit,Retrofit2,Okhttp,如何将非ascii字符作为查询参数发送 不将其编码为ascii并进行改装(假设发生了这种情况) 例如,我不希望查询q的值在到达服务器端时从/?q=Gä变为/?q=G%C3%A4 @GET("endpoint/") fun get( @Query("q") value: String, ): Response 我尝试过使用@Query(value=“q”,encoded=true),但我认为这并不像我最初认为的那样 我还想提一下,我可以在我的firefox浏览器中发送此请求,并且它可以正

如何将非ascii字符作为查询参数发送 不将其编码为ascii并进行改装(假设发生了这种情况)

例如,我不希望查询
q
的值在到达服务器端时从
/?q=Gä
变为
/?q=G%C3%A4

@GET("endpoint/")
fun get(
    @Query("q") value: String,
): Response
我尝试过使用
@Query(value=“q”,encoded=true)
,但我认为这并不像我最初认为的那样

我还想提一下,我可以在我的firefox浏览器中发送此请求,并且它可以正常工作

  • (尽管关于标题)