Re: [Virtuoso-users] Encoding problems with VirtModel

2009-09-07 Thread Hugh Williams
Hi Sergio, What is the version and build date of your Virtuoso server (virtuoso-t - ?), as with the sample program I provided you and the latest 5.x build I do not have the problem. Note we have a snapshot of the latest 5.x archive available from the following location: ftp://dow

Re: [Virtuoso-users] Encoding problems with VirtModel

2009-09-07 Thread Sergio Fernández
Dear Hugh, On Sat, 2009-09-05 at 21:47 +0100, Hugh Williams wrote: > We have written the attached program to try and test the issue you > report: Thank you very much, I did not intend to make you lose so much time. Unfortunately I've to say that your code has the same behavior than our code: it

Re: [Virtuoso-users] Encoding problems with VirtModel

2009-09-05 Thread Hugh Williams
Hi Sergio,We have written the attached program to try and test the issue you report:import com.hp.hpl.jena.query.*;import com.hp.hpl.jena.rdf.model.RDFNode;import com.hp.hpl.jena.graph.Triple;import com.hp.hpl.jena.graph.Node;import com.hp.hpl.jena.graph.Graph;import com.hp.hpl.jena.rdf.model.*;imp

Re: [Virtuoso-users] Encoding problems with VirtModel

2009-09-04 Thread Sergio Fernández
Dear Hugh, we were making some more tests, and we found a curious behavior: after startup the server, encoding issue disappears the first time that we insert data using VirtModel, but it reappears in the followings. So it looks a problem with any open socket in the JDBC driver or something like t

Re: [Virtuoso-users] Encoding problems with VirtModel

2009-09-04 Thread Sergio Fernández
On Thu, 2009-09-03 at 17:59 +0100, Hugh Williams wrote: > The default encoding may be ISO8859_1, which could give the wrong > result. For proper checking you should set: > String rdf = new String (b, "UTF-8"); Not in this app. Anyway, we tried forcing String encoding in that way and we

Re: [Virtuoso-users] Encoding problems with VirtModel

2009-09-03 Thread Hugh Williams
Hi Sergio, File d = new File(this.getClass().getClassLoader().getResource ("full.rdf").getPath()); // the file is correctly UTF-8 encoded FileInputStream fis= new FileInputStream(d); byte[] b = new byte[fis.available()]; fis.read(b); fis.close (); Strin

Re: [Virtuoso-users] Encoding problems with VirtModel

2009-09-03 Thread Sergio Fernández
On Mon, 2009-08-31 at 21:05 +0100, Hugh Williams wrote: > How is the data inserted into Virtuoso is this done via the same Jena > application or loaded by some other means ? Huhg, here you have a piece of code: File d = new File(this.getClass().getClassLoader().getResource("full.rdf").g

Re: [Virtuoso-users] Encoding problems with VirtModel

2009-09-01 Thread Sergio Fernández
On Mon, 2009-08-31 at 21:05 +0100, Hugh Williams wrote: > How is the data inserted into Virtuoso is this done via the same Jena > application or loaded by some other means ? As I told you in the first mail of this thread: * firstly reading directly the stream with VirtModel * and late

Re: [Virtuoso-users] Encoding problems with VirtModel

2009-08-31 Thread Hugh Williams
Hi Sergio, How is the data inserted into Virtuoso is this done via the same Jena application or loaded by some other means ? Can you query the data via the Virtuoso SPARQL endpoint (http:// :/sparql) or some other means and receive the expected data ? Best Regards Hugh Williams Professio

Re: [Virtuoso-users] Encoding problems with VirtModel

2009-08-31 Thread Sergio Fernández
On Mon, 2009-08-31 at 12:31 +0100, Hugh Williams wrote: Dear Hugh, > I suspect you need to set the charset for the Virtuoso JDBC Driver to > "UTF-8" to match the encoding in Jena as detailed at: Thank you very much for your fast answer. Unfortunately set the enconding on the connection string

Re: [Virtuoso-users] Encoding problems with VirtModel

2009-08-31 Thread Hugh Williams
Hi Sergio, I suspect you need to set the charset for the Virtuoso JDBC Driver to "UTF-8" to match the encoding in Jena as detailed at: http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/ VirtJenaProvider#Compiling%20Jena%20Sample%20Programs Best Regards Hugh Williams Professional Serv

Re: [Virtuoso-users] Encoding problems with VirtModel

2009-08-31 Thread Hugh Williams
Hi Sergio, I suspect you need to set the charset for the Virtuoso JDBC Driver to "UTF-8" to match the encoding in Jena as detailed at: http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/ VirtJenaProvider#Compiling%20Jena%20Sample%20Programs Best Regards Hugh Williams Professional Serv

[Virtuoso-users] Encoding problems with VirtModel

2009-08-31 Thread Sergio Fernández
Dear list, (sorry, I'm not if this topic was previously discussed here, because I can't check it because search doesn't work properly in the new SF's interface) we're having some encoding problems loading RDF/XML data using VirtModel in Java. We get "Organizaci?n" instead of "Organización", for i