code: public static String toLiteral(char ch, boolean useRaw){
          if(ch=='\'')
              return "\\'";
          else if(ch=='"')
              return "\"";
          else
              return StringUtil.toLiteral(String.valueOf(ch), useRaw);
      }
docs: /*-------------------------------------------------[ Literal ]---------------------------------------------------