public static String getbyte(int start,int end,String tt){
try {
byte[] bytes=tt.getBytes();
byte[] b1=new byte[end-start];
int j=0;
for (int i = start; i < end; i++) {
b1[j]=bytes ;
j++;
}
return new String(b1,"gb2312").toString();
} catch (UnsupportedEncodingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return "";
}
}
try {
byte[] bytes=tt.getBytes();
byte[] b1=new byte[end-start];
int j=0;
for (int i = start; i < end; i++) {
b1[j]=bytes ;
j++;
}
return new String(b1,"gb2312").toString();
} catch (UnsupportedEncodingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return "";
}
}