| | |
Byte to string issue
![]() |
•
•
Join Date: Jul 2009
Posts: 8
Reputation:
Solved Threads: 0
I need to convert a byte array to a string, and it's working perfectly except for a few values.
Instead of adding the value 8D to the string, it adds the value 3F.
Any ideas why this doesn't work? So far it works for every value excluding 8D (01, CC, FF for example all work).
Java Syntax (Toggle Plain Text)
byte[] b = {(byte)0x8D}; String s = new String(b);
Instead of adding the value 8D to the string, it adds the value 3F.
Any ideas why this doesn't work? So far it works for every value excluding 8D (01, CC, FF for example all work).
![]() |
Similar Threads
- Convert byte Array to string + VB 6.0 (Visual Basic 4 / 5 / 6)
- String Issue :( (C++)
- newbie: how do I test a byte string? (Python)
- Extracting strings from a multi-byte string (Visual Basic 4 / 5 / 6)
- I need urgent help about getting n.th byte of a string to integer (C++)
- What to do if the string entered exceeds the specified size (C)
- why can't you use a switch statment with a string? (C++)
Other Threads in the Java Forum
- Previous Thread: run j2me programs on ubuntu x64
- Next Thread: drawing rectangle based on combo box values
| Thread Tools | Search this Thread |
2dgraphics account android api apple applet application arguments array arrays automation banking binary binarytree bluetooth chat chatprogramusingobjects class client code color component count database derby design eclipse eclipsedevelopment encryption error fractal game givemetehcodez graphics gridlayout gui homework html ide if_statement image integer interface j2me java javadesktopapplications javaprojects jlabel jni jpanel jtextfield julia keyword linux list macintosh map method methods midlethttpconnection mobile netbeans newbie nullpointerexception object open-source os problem producer program programming project projectideas property read recursion reference replaysolutions ria scanner search server set size sms sort sourcelabs splash sql sqlite stop string swing threads transforms tree ui unicode validation windows





