Here you can find the source of utf8Replace(String str)
public static String utf8Replace(String str)
//package com.java2s; //License from project: Open Source License public class Main { private static final char FULL_MINUS = (char) 65293; private static final char HALF_MINUS = '-'; public static String utf8Replace(String str) { if (str != null) { return str.replace(FULL_MINUS, HALF_MINUS); }//w w w.jav a2 s. com return null; } }