/api/search?&query=تستEncoded link by retrofit -> api/search%3F&query=%D8%AA%D8%B3%D8%AAI need this link-> api/search?&query=%D8%AA%D8%B3%D8%AAI need don't convert character '?' to %3F.do is anyway?..." />

Retrofit path encode except character?

I use retrofit and my interface below


fun search(@Path(value = "link", encoded = true) link: String?): Call

Do I need to use encoded for all link except character '?'.


Link -> /api/search?&query=تست

Encoded link by retrofit -> api/search%3F&query=%D8%AA%D8%B3%D8%AA

I need this link-> api/search?&query=%D8%AA%D8%B3%D8%AA

I need don't convert character '?' to %3F.

do is anyway?...

Read More »

By: StackOverFlow - Tuesday, 6 November

Related Posts