java_version_problem

pull/1375/head
ZiaCheemaGit 2025-07-26 16:22:46 +05:00 zatwierdzone przez GitHub
rodzic 60ff3906aa
commit b3e6ff8c78
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -47,8 +47,14 @@ public final class Utils {
* @return The decoded URL.
*/
public static String decodeUrlUtf8(final String url) {
return URLDecoder.decode(url, StandardCharsets.UTF_8);
try {
return URLDecoder.decode(url, "UTF-8"); // ✅ Compatible with Android
} catch (UnsupportedEncodingException e) {
// Should never happen with UTF-8
throw new RuntimeException("UTF-8 not supported", e);
}
}
/**
* Remove all non-digit characters from a string.