Here you can find the source of ToSBC(String input)
public static String ToSBC(String input)
//package com.java2s; //License from project: Open Source License public class Main { public static String ToSBC(String input) { char c[] = input.toCharArray(); for (int i = 0; i < c.length; i++) { if (c[i] == ' ') { c[i] = '\u3000'; } else if (c[i] < '\177') { c[i] = (char) (c[i] + 65248); }//from w w w .ja v a 2s. co m } return new String(c); } }