Java UTF8 Encode Utf8codeCheck(String text)

Here you can find the source of Utf8codeCheck(String text)

Description

Utfcode Check

License

Open Source License

Declaration

private static boolean Utf8codeCheck(String text) 

Method Source Code

//package com.java2s;

public class Main {

    private static boolean Utf8codeCheck(String text) {
        String sign = "";
        if (text.startsWith("%e")) {
            for (int p = 0; p != -1;) {
                p = text.indexOf("%", p);
                if (p != -1) {
                    p++;/*  w ww  . j  av a  2 s  .  c  o m*/
                }
                sign += p;
            }
        }
        return sign.equals("147-1");
    }
}

Related

  1. toUTF8Bytes(String src)
  2. toUTF8Bytes(String string)
  3. toUTF8InputStream(String str)
  4. toUTF8String(byte[] b, int offset, int length)
  5. utf8Code(String str)
  6. utf8Encode(final Collection col)
  7. utf8Encode(final String s)
  8. utf8Encode(final String value)
  9. utf8Encode(String s)