Sorry, it seems to be a platform independent problem.
I could reproduce your problem even on the Linux machine.
Just had no really 'iso formatted' xml test document first.
In the code I sent, the TextInputStream is in fact providing the correct
character encoding and it turned out that the
Hmm this is not working for me, I still get a null object from oDB.parse...
what system do you test this on?
I am running this on windows 2003 server and openoffice 2.0
(I know that there is a way to get build number, but I keep forgetting it)
Christoph Jopp wrote:
Kjære Christian,
for meg
The system I tested it was a Linux Machine ;-) so it might be true that
there is a difference.
To check it on a Windows (XP) machine I have to wait until the evening.
But what I found in the IDL reference might help:
They say they use the character encoding name according to this
thank you, I'll try that at once, and don't worry about the norwegian,
I'm not good at it either.
Christoph Jopp wrote:
Kjære Christian,
for meg følgende code virker:
oSFA = createUNOService (com.sun.star.ucb.SimpleFileAccess)
oInpStream = oSFA.openFileRead(sUrl)
oTextInpStream
Kjære Christian,
for meg følgende code virker:
oSFA = createUNOService (com.sun.star.ucb.SimpleFileAccess)
oInpStream = oSFA.openFileRead(sUrl)
oTextInpStream = createUnoService(com.sun.star.io.TextInputStream)
oTextInpStream.setInputStream(oInpStream)