NewStringUTF not working with ISO8859-13 (latvian)

We have this small test that takes a string which is on Latvian and it prints just fine on the C side. Once we pass this string to the Java side using NewStringUTF it just prints question characters instead (?). After researching this matter we have seen that some people are sugesting to use the Jstring constructor with a byte array. We tried that but it core dumps. Apparently (from what I have been reading in the newsgroups) this seems to be a bug in the VM. Does anybody have a solution to this problem?

[524 byte] By [rivera] at [2007-9-26 11:21:36]
# 1
Is your Latvian string in Unicode or UTF-8? If it's in Unicode, then you need to use NewString instead ofNewStringUTF.
bryanhilterbrand at 2007-7-2 0:29:02 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
We tried the same thing already with NewString (it even cores sometimes) and it gives us the same result as NewStringUTF.
rivera at 2007-7-2 0:29:02 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3
On the topic of the byte array -- did you make sure that it was zero terminated? Really, byte array vs. character pointer should make no difference anyway.
bryanhilterbrand at 2007-7-2 0:29:02 > top of Java-index,Java HotSpot Virtual Machine,Specifications...