• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

bit char string...need help

Contributor ,
May 20, 2009 May 20, 2009

Copy link to clipboard

Copied

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

TOPICS
Advanced techniques

Views

415

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
May 20, 2009 May 20, 2009

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation