Java UTF8 utf8Replace(String str)

Here you can find the source of utf8Replace(String str)

Description

utf Replace

License

Open Source License

Declaration

public static String utf8Replace(String str) 

Method Source Code

//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;
    }
}

Related

  1. utf8CharLen(byte byte1)
  2. UTF8GetBytes(final String value)
  3. UTF8GetString(final byte[] bytes, final int index, final int count)
  4. utf8Len(byte b)
  5. utf8Length(byte[] buffer, int str, int len)
  6. utf8SafeCEscape(String src)
  7. utf8String(String... strs)
  8. utf8StringLength(final CharSequence sequence)
  9. utf8StringSizeInBytes(String s)