package com.baidu.ueditor;
public class Encoder {
	public static String toUnicode ( String input ) {
		
		StringBuilder builder = new StringBuilder();
		char[] chars = input.toCharArray();
		
		for ( char ch : chars ) {
			
			if ( ch < 256 ) {
				builder.append( ch );
			} else {
				builder.append( "\\u" +  Integer.toHexString( ch& 0xffff ) );
			}
			
		}
		
		return builder.toString();
		
	}
	
}
最近下载更多
                
                luqi40281518     LV7
                2023年10月7日
            
            
        
                zxc131313     LV12
                2022年12月9日
            
            
        
                907552380     LV13
                2022年6月6日
            
            
        
                hezienjoy     LV3
                2022年6月4日
            
            
        
                Lmfbaby     LV9
                2022年5月29日
            
            
        
                T1247965890     LV8
                2022年3月9日
            
            
        
                20190615     LV7
                2022年3月4日
            
            
        
                waityou2000317     LV4
                2022年2月17日
            
            
        
                Dderde     LV8
                2021年11月19日
            
            
        
                lvhaowen     LV20
                2021年11月8日
            
            
        
最近浏览更多
                
                云间不羁客qq    
                5月26日
            
            
                    暂无贡献等级
            
        
                tiancj     LV1
                2024年11月25日
            
            
        
                krispeng     LV15
                2024年11月20日
            
            
        
                栾庆浩    
                2024年10月23日
            
            
                    暂无贡献等级
            
        
                xiaoxindu8     LV10
                2024年9月13日
            
            
        
                PISCESPLUS     LV5
                2024年9月3日
            
            
        
                麻辣香锅加锐澳     LV7
                2024年9月1日
            
            
        
                happySuperman     LV2
                2024年6月11日
            
            
        
                微信网友_7030143019094016     LV1
                2024年6月9日
            
            
        
                lilitu     LV6
                2024年5月29日
            
            
        
                
                
                