Code example for Charset

Methods: equals

0
			throw new IllegalArgumentException();
		} 
		 
		Charset charset = Charset.forName(encoding);
		 
		if (!kakaoLinkCharset.equals(charset)) {
				msg = new String(msg.getBytes(charset.name()), kakaoLinkEncoding);
			} 
		 
		StringBuilder sb = new StringBuilder("kakaolink://sendurl?");
		sb.append("appid=").append(URLEncoder.encode(appId, kakaoLinkEncoding));
		sb.append("&appver=").append(URLEncoder.encode(version, kakaoLinkEncoding));
		sb.append("&url=").append(URLEncoder.encode(url, kakaoLinkEncoding));
			sb.append("&msg=").append(URLEncoder.encode(msg, kakaoLinkEncoding));
		 
		sb.append("&type=").append(URLEncoder.encode(type, kakaoLinkEncoding));
		sb.append("&apiver=").append(URLEncoder.encode(apiVer, kakaoLinkEncoding));
		sb.append("&appname=").append(URLEncoder.encode(appName, kakaoLinkEncoding));
 
		Log.i("TEST", "++ sb.toString() : " + sb.toString());
		return Uri.parse(sb.toString());