public static String truncateUtf8(String str, int maxBytes) {
		Charset charset = StandardCharsets.UTF_8;
		//UTF-8编码单个字符最大长度4
		return truncateByByteLength(str, charset, maxBytes, 4, true);
	}
@Test
	public void truncateUtf8Test() {
		final String str = "这是This一段中英文";
		String ret = StrUtil.truncateUtf8(str, 12);
		assertEquals("这是Thi...", ret);

		ret = StrUtil.truncateUtf8(str, 13);
		assertEquals("这是This...", ret);

		ret = StrUtil.truncateUtf8(str, 14);
		assertEquals("这是This...", ret);

		ret = StrUtil.truncateUtf8(str, 999);
		assertEquals(str, ret);
	}