Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

ERROR: character 0xd098 of encoding "UTF8" has no equivalent in "LATIN2"

[es] :: Java :: ERROR: character 0xd098 of encoding "UTF8" has no equivalent in "LATIN2"

[ Pregleda: 2921 | Odgovora: 3 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

abyss

Član broj: 2945
Poruke: 684
91.150.126.*



+51 Profil

icon ERROR: character 0xd098 of encoding "UTF8" has no equivalent in "LATIN2"25.07.2007. u 10:42 - pre 203 meseci
Ovako, imam sql tekst fajl sa insert-ima, iz jave citam red po red i execute-ujem.
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();
}


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."
 
Odgovor na temu

rj444
Radomir Jakovljevic
Beograd

Član broj: 48212
Poruke: 354
*.ehv.campus.philips.com.



Profil

icon Re: ERROR: character 0xd098 of encoding "UTF8" has no equivalent in "LATIN2"27.07.2007. u 12:23 - pre 203 meseci
Da li pod Linuxom koristis Sun JVM ili gcj java VM? Cini mi se da sam citao negde da JVM za Linux ima nekih problema sa nasim slovima, samo nisam siguran da li se radilo o SUN JVM ili o gnu-ovoj. Pokusaj da pokrenes program sa najnovijom 1.6_02 (valjda) verzijom jave za Linux.

Pozdrav,
Rade
 
Odgovor na temu

abyss

Član broj: 2945
Poruke: 684
91.150.126.*



+51 Profil

icon Re: ERROR: character 0xd098 of encoding "UTF8" has no equivalent in "LATIN2"27.07.2007. u 12:43 - pre 203 meseci
JVM je sun-ova i to verzija 1.4.1 a VM ne smem da menjam, tako da mi ostaje da promenim bazu u utf-8, valjda tad nece biti problema? Da li bi uopste bilo problema ako se baza konvertuje iz latin2 u utf-8
--
"Once hadst thou passions and calledst them evil. But now hast thou only
thy virtues: they grew out of thy passions."
 
Odgovor na temu

rj444
Radomir Jakovljevic
Beograd

Član broj: 48212
Poruke: 354
89.98.150.*



Profil

icon Re: ERROR: character 0xd098 of encoding "UTF8" has no equivalent in "LATIN2"27.07.2007. u 18:35 - pre 203 meseci
Na to ne mogu da ti odgovorim, napravi backup baze i pokusaj pa sta bude. Nadam se da ce uspeti jer UTF-8 je standard, dok Java ima problema sa Latin2 kodnom stranom.

Pozdrav i srecno.
 
Odgovor na temu

[es] :: Java :: ERROR: character 0xd098 of encoding "UTF8" has no equivalent in "LATIN2"

[ Pregleda: 2921 | Odgovora: 3 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.