Does IKVM affect encoding text?

View: New views
1 Messages — Rating Filter:   Alert me  

Does IKVM affect encoding text?

by Nives :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello, I develop with .net framework 1.1, so I use IKVM 0.32 to create a dll from a cooperation's jar file.

The jar file is a Encrypt and Decrypt function. My charset is big5, and cooperation's gb2312.

So before I use the Encrypt function, I need to encode text(strings) to gb2312 and send the Encrypt text to cooperation by httpWebrequest.

First, I met the same question, Character-encoding-gb2312, I solved by add this in my Web.config
< appSettings>
< add key="ikvm:file.encoding" value="utf8" />
< /appSettings>

It can work, I can call the java function in .net, but the cooperation's programmer told me the text he got and decrypted is garbage characters.

Only english alphabet and digits can read. I got the Response stream and decrypt, the stream is garbage characters, too.

I try to send text only without Encrypt, and the result is OK. The cooperation's programmer is testing Encrypt function in java environment, it work fine.

So, I think maybe IKVM is the reason to affect encoding, but I don't know how to solve the question. Does anyone have the same experience?

Regards, Nives 2009/09/08