Android String to UTF8 String Convert toSemiangle(String src)

Here you can find the source of toSemiangle(String src)

Description

to Semiangle

Declaration

public static String toSemiangle(String src) 

Method Source Code

//package com.java2s;

public class Main {
    public static String toSemiangle(String src) {

        char[] c = src.toCharArray();
        for (int index = 0; index < c.length; index++) {
            if (c[index] == 12288) { 
                c[index] = (char) 32;
            } else if (c[index] > 65280 && c[index] < 65375) { // ??????
                c[index] = (char) (c[index] - 65248);
            }//from w  w w.ja  v  a  2s. com
        }
        return String.valueOf(c);
    }
}

Related

  1. toUtf8String(String s)
  2. toDBC(String input)
  3. toGbk(String string)