示例#1
0
 public static String toDefaultEncoding(String s) {
   if (!isI18N) {
     return s;
   } else {
     com.dragonflow.Utils.I18N.test(s, 1);
     String s1 =
         com.dragonflow.Utils.I18N.UnicodeToString(s, com.dragonflow.Utils.I18N.nullEncoding());
     return com.dragonflow.Utils.I18N.StringToUnicode(s1, "");
   }
 }
示例#2
0
  /**
   * CAUTION: Decompiled by hand.
   *
   * @return
   */
  public static String getTestUnicode() {
    String s =
        "SAP\u0192W\u0192\u0192\u0192p\u0192\u201C\u0160\u201D\u017D\256\u2030\357\u017D\320";
    String s1 = com.dragonflow.Utils.I18N.UnicodeToString(s);
    try {
      byte abyte0[];
      char ac[] = s1.toCharArray();
      abyte0 = new byte[ac.length];
      for (int i = 0; i < ac.length; i++) {
        abyte0[i] = (byte) (ac[i] & 0xff);
      }

      return new String(abyte0, "shift_jis");
    } catch (Exception exception) {
      return "";
    }
  }
示例#3
0
 public static String escapeString(String s, String s1) {
   return com.dragonflow.Utils.TextUtils.escapeHTML(
       com.dragonflow.Utils.I18N.StringToUnicode(
           com.dragonflow.Utils.I18N.UnicodeToString(s, com.dragonflow.Utils.I18N.nullEncoding()),
           s1));
 }
示例#4
0
 public static String UnicodeToString(String s) {
   return com.dragonflow.Utils.I18N.UnicodeToString(s, "");
 }