|
-
Apr 23rd, 2013, 06:40 AM
#1
Thread Starter
New Member
Character conversion failing (DLL)
Hello,
I currently have a project that reads a Dynamic Link Library from a HTTP stream into a string (yes it can be done differently but for this project it can't).
The string needs to be converted back to a byte array (which contains the DLL), the problem is the encoding.
I've tried unicode, default, ansi code page ... not sure but they all mess up. Here's a an example to show what I mean;
Original file:

Downloaded string converted to byte array then written to file (debug):

So the problem is clearly the encoding (getbytes), does anyone have an idea how I can write the contents of my string DIRECTLY to a byte array without encoding?
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|