/**
* inParam:需要转换的gb2312中文字符 返回:该中文字符对应的UTF-8编码的字符
*/
public static String toUTF(String inPara) {
char temChr;
int ascChr;
int i;
String rtStr = new String("");
if (inPara == null) {
inPara = "";
}
for (i = 0; i < inPara.length(); i++) {
temChr = inPara.charAt(i);
ascChr = temChr + 0;
rtStr = rtStr + "&#x" + Integer.toHexString(ascChr) + ";";
}
return rtStr;
}