String decoding using UTF-8
This is the third time I have to put in this question as stackoverflow is in a bad mood today!!! So here I go again:

I have a string in the database that was encoded in the .Net application using RSA. After further converting it into the hexadecimal string the final string in database look as follows:

    96-F0-C2-64-0B-26-1E-48-2A-C5-45-64-83-A1-D8-37-DE-A5-EA-DA-6A-9D-D9-6B-51-B4-0E-41-34-45-8F-47-BB-C4-FC-ED-01-38-26-31-13-0C-0A-36-3D-E2-93-1C-0E-83-95-99-D6-F8-72-6C-72-7C-04-C6-52-3B-CB-98-E3-C3-45-E6-F6-8E-0A-9D-EE-2E-36-22-BA-F7-7F-07-34-6E-6E-A4-94-9D-09-F2-B6-2E-DE-84-54-04-B9-1B-D7-C8-AC-DA-68-79-D7-AD-FC-77-E7-54-82-A9-92-B2-58-61-86-A1-56-66-9F-E1-EC-64-BF-F1-4F-5C-29-C4

I am still in the process of completing the code, so instead of reading the database for that string I copied it in my Java code directly. I first remove all the - (dashes) from that string, then converted the hexadecimal into array of bytes (byte[]). Then I use the following RSA code to decrypt it:

    KeyFactory factory = KeyFactory.getInstance("RSA");
    Cipher cipher = Cipher.getInstance("RSA/ECB/NoPadding");
    RSAPrivateKeySpec privSpec = new RSAPrivateKeySpec(modules, d); // assume that modules and d are correct
    PrivateKey privKey = factory.generatePrivate(privSpec);
    cipher.init(Cipher.DECRYPT_MODE, privKey);
    byte[] decrypted = cipher.doFinal(nameByte); // nameByte is the array of byte that has hexadecimal value converted to byte[]

When I print the "decrypted" value I get the following:

    }=Û6£«ÿórø’Â'Ø˛ﬂ¢“Æ‘ƒm∂Òƒ’Ÿºe¶bæh&‹°ÄÎé’#¨Å(À9t˜zh£(£ÔÁÃTuÄøp˘`14

How can I convert this string further into a regular, human readable text?

BTW, I have tried:

    new String(decrypted, "UTF-8");

but the result of that is still not human readable text. It is

    }=?6???r???'??????m?????e?b?h&?????#??(?9t?zh?(????Tu??p?`14
String decoding using UTF-8
===

This is the third time I have to put in this question as stackoverflow is in a bad mood today!!! So here I go again:

I have a string in the database that was encoded in the .Net application using RSA. After further converting it into the hexadecimal string the final string in database look as follows:

    96-F0-C2-64-0B-26-1E-48-2A-C5-45-64-83-A1-D8-37-DE-A5-EA-DA-6A-9D-D9-6B-51-B4-0E-41-34-45-8F-47-BB-C4-FC-ED-01-38-26-31-13-0C-0A-36-3D-E2-93-1C-0E-83-95-99-D6-F8-72-6C-72-7C-04-C6-52-3B-CB-98-E3-C3-45-E6-F6-8E-0A-9D-EE-2E-36-22-BA-F7-7F-07-34-6E-6E-A4-94-9D-09-F2-B6-2E-DE-84-54-04-B9-1B-D7-C8-AC-DA-68-79-D7-AD-FC-77-E7-54-82-A9-92-B2-58-61-86-A1-56-66-9F-E1-EC-64-BF-F1-4F-5C-29-C4

I am still in the process of completing the code, so instead of reading the database for that string I copied it in my Java code directly. I first remove all the - (dashes) from that string, then converted the hexadecimal into array of bytes (byte[]). Then I use the following RSA code to decrypt it:

    KeyFactory factory = KeyFactory.getInstance("RSA");
    Cipher cipher = Cipher.getInstance("RSA/ECB/NoPadding");
    RSAPrivateKeySpec privSpec = new RSAPrivateKeySpec(modules, d); // assume that modules and d are correct
    PrivateKey privKey = factory.generatePrivate(privSpec);
    cipher.init(Cipher.DECRYPT_MODE, privKey);
    byte[] decrypted = cipher.doFinal(nameByte); // nameByte is the array of byte that has hexadecimal value converted to byte[]

When I print the "decrypted" value I get the following:

    }=Û6£«ÿórø’Â'Ø˛ﬂ¢“Æ‘ƒm∂Òƒ’Ÿºe¶bæh&‹°ÄÎé’#¨Å(À9t˜zh£(£ÔÁÃTuÄøp˘`14

How can I convert this string further into a regular, human readable text?

BTW, I have tried:

    new String(decrypted, "UTF-8");

but the result of that is still not human readable text. It is

    }=?6???r???'??????m?????e?b?h&?????#??(?9t?zh?(????Tu??p?`14