Piotrek "Alchemik"
2005-05-30 17:45:00 UTC
Napisalem maly programik, ktory teoretycznie bedzie zmienial kodowanie znakow
iso-8859-2 na standard cp1250, ale nie mam pojecia, czy on wogole dziala, nie za
bardzo wiem jakie testy mozna do niego zastosowac, moze ktos ma jakis ew. pomysl?
Z gory dzieki
String napis = new String ("ĄĆĘŻŹ");
File file = new File("ala.txt");
FileWriter out = new FileWriter(file);
out.write(napis + "\n");
byte[] bity;
bity = napis.getBytes("iso-8859-2");
String napis2 = new String(bity,"CP1250" );
out.write(napis2);
out.close();
iso-8859-2 na standard cp1250, ale nie mam pojecia, czy on wogole dziala, nie za
bardzo wiem jakie testy mozna do niego zastosowac, moze ktos ma jakis ew. pomysl?
Z gory dzieki
String napis = new String ("ĄĆĘŻŹ");
File file = new File("ala.txt");
FileWriter out = new FileWriter(file);
out.write(napis + "\n");
byte[] bity;
bity = napis.getBytes("iso-8859-2");
String napis2 = new String(bity,"CP1250" );
out.write(napis2);
out.close();
--
Piotrek "Alchemik" gg:183441 kilobyte[at]tlen[dot]pl
/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\
"I am not in this world to live up to other people's expectations, nor
do I feel that the world must live up to mine." /Fritz Perls
Piotrek "Alchemik" gg:183441 kilobyte[at]tlen[dot]pl
/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\
"I am not in this world to live up to other people's expectations, nor
do I feel that the world must live up to mine." /Fritz Perls