UTF-8 转 UNIcode
来源:互联网 发布:打印机正在接收数据 编辑:程序博客网 时间:2024/06/06 07:37
针对中文显示乱码
private String encodeQuotedPrintable(final String str) { if (TextUtils.isEmpty(str)) { return ""; } final StringBuilder builder = new StringBuilder(); int index = 0; int lineCount = 0; byte[] strArray = null; try { strArray = str.getBytes("UTF-8"); } catch (UnsupportedEncodingException e) { strArray = str.getBytes(); } while (index < strArray.length) { builder.append(String.format("=%02X", strArray[index])); index += 1; lineCount += 3; if (lineCount >= 67) { // Specification requires CRLF must be inserted before the // length of the line // becomes more than 76. // Assuming that the next character is a multi-byte character, // it will become // 6 bytes. // 76 - 6 - 3 = 67 builder.append("=\r\n"); lineCount = 0; } } return builder.toString();}
0 0
- UTF-8 转 Unicode
- UTF-8 转 Unicode
- Unicode转UTF-8
- unicode转utf-8
- Unicode转utf-8
- Unicode转UTF-8
- UTF-8 转 UNIcode
- php unicode转utf-8
- ios Unicode 转 UTF-8
- unicode 转 utf-8编码
- iOS unicode转utf-8
- 汉字utf-8转unicode
- Unicode UTF-8 UTF-16
- UNICODE,UTF-8,UTF-16
- Unicode(UTF-8, UTF-16)
- Unicode(UTF-8, UTF-16)
- UTF-8转UTF-16,UTF-8转UNICODE详解 附UTF8转UNICODE C源码
- Unicode,UTF-8,UTF-16,UTF-32
- PagerAdapter-FragmentPagerAdapter-FragmentStataePagerAdapter
- 机器学习(十一)使用sklearn对kaggle的Titanic进行建模
- Android Material Design 学习(二)
- linux文件系统相关
- 【ROLLUP】Oracle分组函数之ROLLUP魅力
- UTF-8 转 UNIcode
- 函数指针及应用
- nyoj 三个水杯
- HTML+CSS绘制表格
- ios NSNumber NSArray NSDictionary 初始化简写
- 自定义控件之复合控件详解
- 查询protocol对应的条目时为空
- js对json的简单操作
- 基于PHP的APP微信支付开发(一)