Mirko
unread,Nov 10, 2009, 8:32:05 AM11/10/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jug-genova
Ciao a tutti,
Dopo mezza giornata in rete a trovate le soluzioni +/- bislacche,
vi chiedo se potete darmi una mano a risolvere il problema seguente:
Ho un file di testo contenente il simbolo "€".
Attraverso Castor eseguo il marshall per darlo, poi in pasto al
JasperReport.
Quest'ultimo va in errore (net.sf.jasperreports.engine.JRException:
Failed to parse the xml document)
Infatti, aprendo l'xml col browser IE, anche questo va in errore e
usando XMLSpy, al posto del simbolo c'è un quadratino vuoto.
Il problema credo che stia nel marshall di Castor.
Esso utilizza un encoding UTF-8. Ho provato ad utilizzare altri
encoding (es.: ISO-8859-15), ho provato ad usare anche CharsetEncoder/
CharsetDecoder, ma con scarsi risultati.
Il workaround è chiaro: trovo '€', lo sostituisco con 'EUR', ma non mi
fa impazzire.
Avete idee?
Grazie
Mirko