S
S
skkap2010-11-04 22:24:10
Java
skkap, 2010-11-04 22:24:10

Unicode(Cyrillic) in URL Java, Android

Tell me how in Java, when developing for Android, convert a Cyrillic string into something like this: "%D0%B3%D1%80%D1%83%D0%BF%D0%BF%D0%B0".
In the example above, the word "group" is encrypted.
All this is needed to be used in the URL to request the html page.

Thank you!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
apangin, 2010-11-05
@skkap

URLEncoder.encode("group", "UTF-8")

M
MT, 2010-11-04
@MTonly

Parse a UTF-8 string into bytes, representing each byte as a hexadecimal number preceded by a %.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question