dcsimg
getting ???? when writing char[]
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Lil_Rivera
Posted On:   Wednesday, July 24, 2002 01:01 PM

Why do I get question marks when I write a salted char[] password to a file? When I read it back, I am unable to decrypted. However, I have no problem encrypting/decrypting when I don't write it out to a file. Please help.


Please use html tags to format code blocks.

Re: getting ???? when writing char[]

Posted By:   Alex_Kobyakov  
Posted On:   Thursday, July 25, 2002 12:11 AM

Probably you uses some kind of OutputStreams, and they have a problem with encodings (as far as I can tell from result - sequence of question marks is common with such a problems.)

Try to use RandomAccessFile, or play with encoding settings in your OutputStream.

Good luck, though.
About | Sitemap | Contact