Java tutorial
//package com.java2s; import java.text.DecimalFormat; public class Main { protected static final String encodingUTF8andIndex(byte[] src, int srart, int length) throws Exception { byte[] b = new String(src, srart, length, "euc-kr").getBytes("utf-8"); String str = new String(b).trim(); return new DecimalFormat("###,###.00").format(Double.valueOf(str)); } }