public static void encode(StringBuilder urlstr, String key) {if (key == null || key.length() == 0)return;try {urlstr.append(URLEncoder.encode(key, UTF_8.name()));} catch (UnsupportedEncodingException e) {throw new RuntimeException(JGitText.get().couldNotURLEncodeToUTF8, e);}}

public static void Encode(StringBuilder urlstr, string key){if (key == null || key.Length == 0){return;}try{urlstr.Append(URLEncoder.Encode(key, "UTF-8"));}catch (UnsupportedEncodingException e){throw new RuntimeException(JGitText.Get().couldNotURLEncodeToUTF8, e);}}
