当前位置: 首页 > news >正文

深圳网站设计x湛江建设工程交易中心网站

深圳网站设计x,湛江建设工程交易中心网站,建设网站最强,装修公司起名不解释#xff0c;直接上代码#xff1a; 由于Iteye代码贴四个字节的#xff35;#xff34;#xff26;#xff0d;#xff18;字符出错#xff0c;特能图的方式发布几个特殊字符#xff1a; Java代码 public class Byte4Check { public static void main… 不解释直接上代码 由于Iteye代码贴四个字节的字符出错特能图的方式发布几个特殊字符  Java代码   public class Byte4Check {          public static void main(String args[]) throws UnsupportedEncodingException {           String nickName  12葫;              byte[] t  nickName.substring(0, 1).getBytes(UTF-8);           for (byte tt : t) {               System.out.println(tt);           }           System.out.println();           byte[] t1  nickName.getBytes(UTF-8);           for (int i  0; i  t1.length;) {               byte tt  t1[i];               if (CharUtils.isAscii((char) tt)) {                   byte[] ba  new byte[1];                   ba[0]  tt;                   i;                   String result  new String(ba);                   System.out.println(1个字节的字符);                   System.out.println(字符为  result);               }               if ((tt  0xE0)  0xC0) {                   byte[] ba  new byte[2];                   ba[0]  tt;                   ba[1]  t1[i1];                   i;                   i;                   String result  new String(ba);                   System.out.println(2个字节的字符);                   System.out.println(字符为  result);               }               if ((tt  0xF0)  0xE0) {                   byte[] ba  new byte[3];                   ba[0]  tt;                   ba[1]  t1[i1];                   ba[2]  t1[i2];                   i;                   i;                   i;                   String result  new String(ba);                   System.out.println(3个字节的字符);                   System.out.println(字符为  result);               }               if ((tt  0xF8)  0xF0) {                   byte[] ba  new byte[4];                   ba[0]  tt;                   ba[1]  t1[i1];                   ba[2]  t1[i2];                   ba[3]  t1[i3];                   i;                   i;                   i;                   i;                   String result  new String(ba);                   System.out.println(4个字节的字符);                   System.out.println(字符为  result);               }           }       }   }   参考文献 http://www.yunmx.com/archives/2011/138.htm http://zh.wikipedia.org/wiki/UTF-8 转载于:https://www.cnblogs.com/duyinqiang/p/5696519.html
http://www.zqtcl.cn/news/605139/

相关文章:

  • 企业网站制作多少钱山西网络营销方案
  • 焦作住房和城乡建设局网站旅行网站模板
  • 男做基视频网站国家重点高新技术企业名单
  • 公司官方网站开发网站建设电子商务
  • seo网站优化系统搜索引擎优化排名案例
  • 郑州网站建设工作室网站建设全流程 知乎
  • 如何利用源码做网站外贸网站制作推广
  • 国内做网站哪家公司好免费查找资料的网站
  • 自己做的网站百度搜不到搭建网站seo
  • 奇墙网站建设高端网站建设公司联系电话
  • 宁波那家公司做网站好中企动力科技股份有限公司招聘
  • 水果网站推广网站首页静态好还是动态好
  • iis网站属性小程序源码无需服务器
  • 景区网站建设材料代运营有哪些套路坑
  • 六安电商网站建设哪家好有关做美食的网站
  • 卸载wordpress插件网店seo关键词
  • 金山网站制作赤城seo网站优化排名
  • 提供坪山网站建设深圳商城网站哪家做的好
  • 有什么网站可以帮人做模具吗热搜榜百度一下你就知道
  • 深圳网站优化技巧邹城住房城乡建设部网站
  • 小型企业网站建站桂林市中考信息网官网
  • 雏鸟app网站推广做网站用宋体有版权问题吗
  • 建立网站数据库开公司流程及费用2022最新
  • 外贸谷歌网站推广wordpress调用上传图片
  • 360提示危险网站原因威海 网站开发
  • 赣州本地网站网站怎么写
  • 物业公司网站设计湛江做网站软件
  • 做招聘求职网站wordpress启用插件出错
  • 珠海网站运营网站个人备案流程
  • 网站开发用什么图片格式最好网络营销名词解释是什么