Skip to main content
Inspiring
May 20, 2009
Question

bit char string...need help

  • May 20, 2009
  • 1 reply
  • 482 views

Hi I am trying to convert a bit char string to something useful.  Basically I have an activex tool that allows me acess to a serial port based scale.

I send a weight request command and it sends me this gibberish:

°®°° ìb ÇR

Thank I try to do a tostring() and get this:

\u00b0\u00ae\u00b0\u00b0, on line 1, column 21, is not a valid identifer name.

Hmm.. anyone have to deal with bitchar strings coming from serioal ports or know what i am dealing with here?

Thanks

Frank

This topic has been closed for replies.

1 reply

Participating Frequently
May 21, 2009

Basically you need to access the string as a byte array - I think

there's a method getBytes() that you can apply to a string.

Mack