Hello again,
I've been seeing some example about the use of the library to be used directly Reflector Java functions, or so I understand my bad English. I would like to learn more about the subject, for example, to have a simple code in Java to BA4. This code is used to implement that included one encoding to utf8 natively in Java. Could some kind soul put the code necessary to reflector if possible?
Like I'm saying something very rare, as we say in Spain, ignorance is very bold ... :sign0144:
I've been seeing some example about the use of the library to be used directly Reflector Java functions, or so I understand my bad English. I would like to learn more about the subject, for example, to have a simple code in Java to BA4. This code is used to implement that included one encoding to utf8 natively in Java. Could some kind soul put the code necessary to reflector if possible?
Like I'm saying something very rare, as we say in Spain, ignorance is very bold ... :sign0144:
HTML:
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.nio.charset.Charset;
import java.nio.charset.CharsetDecoder;
import com.sun.corba.se.impl.ior.ByteBuffer;
import java.nio.*;
public class test {
public static void main(String[] args) throws Exception {
System.out.println("Gestió");
CharsetDecoder dec;
//Charset charset= Charset.forName("ISO-8859-1");
String var=new String("Gestió");
byte[] arrByte = var.getBytes("ISO-8859-1");
//ByteBuffer BB = new ByteBuffer();
//Charset charset= Charset.forName("UTF-8");
//CharsetDecoder decoder=charset.newDecoder();
//decoder.decode(var.getBytes("Gestió"));
//decoder.
//System.out.println(URLDecoder.decode("Gestió"));
String result = new String(arrByte, "UTF-8");
System.out.println(result);
System.out.println("FI");
}
}