Baza je postgre (LATIN2) i iz windows-a insertovanje radi odlicno dok iz linux-a javlja gresku: character 0xd098 of encoding "UTF8" has no equivalent in "LATIN2",
problem se javlja kad u nekom polju imam nasa slova...
Sta da radim?
citanje:
Code:
String fajl = "putanja_do fajla";
FileReader fr = new FileReader(new File(fajl));
BufferedReader in = null;
in = new BufferedReader(fr);
String s ="";
s = in.readLine();
while (s != null) {
stat.execute(s);
s = in.readLine();
}
String fajl = "putanja_do fajla";
FileReader fr = new FileReader(new File(fajl));
BufferedReader in = null;
in = new BufferedReader(fr);
String s ="";
s = in.readLine();
while (s != null) {
stat.execute(s);
s = in.readLine();
}
postoje i try catch blokovi ali sam ih izbacio zbog citljivosti...
--
"Once hadst thou passions and calledst them evil. But now hast thou only
thy virtues: they grew out of thy passions."
"Once hadst thou passions and calledst them evil. But now hast thou only
thy virtues: they grew out of thy passions."