String countryCode = "CH"; Locale locale = new Locale("", countryCode); String countryName = locale.getDisplayCountry(); // public String convertStreamToString(InputStream is) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(is)); StringBuilder sb = new StringBuilder(); String line = null; while ((line = reader.readLine()) != null) { sb.append(line + "\n"); } return sb.toString(); } // URL url = new URL("http://www.jtaf.ch/ds_server/country/" + countryCode); String respone = convertStreamToString((InputStream) url.getContent());