I'm working on some code that uses Inline::Java to parse user input in order to make calls to a corba interface in front of an oracle database.
I found when I fetch utf8 data from the database, all is well (assuming I've set my locale -- this is on Solaris 2.8 -- to en_US.UTF-8). When I go the other way, however, passing data from perl to Java via Inline, I get data corruption in the non-ASCII characters. I thought that I might have to convert the strings to UCS2, since that's what Java uses internally, but this results in java errors due to embedded null characters. Has anyone run into this problem before? Any suggestions how to get around it? I'm using perl 5.8 so I shouldn't have to insert a use utf8 pragma. Note also that I've confirmed the data is correct in the perl code before the embedded Java is called. Thanks! --dave