Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5838741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:30:01+00:00 2026-05-22T11:30:01+00:00

I’m using serproxy / thinkerproxy for serial communication in a small Air app. I

  • 0

I’m using serproxy / thinkerproxy for serial communication in a small Air app.
I have two hardware devices to test it. One is a barcode scanner, it works perfectly.

The other is a custom board. It’s kind of working also. The problem is that the characters are unreadable. I think it’s a problem of charset (not sure) so I tried something like this in the function that handles the ProgressEvent.SOCKET_DATA event:

var cs:Array = new Array(   'ISO-8859-1',
                                            'ISO-8859-2',
                                            'ISO-8859-3',
                                            'ISO-8859-4',
                                            'ISO-8859-5',
                                            'ISO-8859-6',
                                            'ISO-8859-7',
                                            'ISO-8859-8',
                                            'ISO-8859-9',
                                            'ISO-8859-10',
                                            'ISO-8859-11',
                                            'ISO-8859-12',
                                            'ISO-8859-13',
                                            'ISO-8859-14',
                                            'ISO-8859-15',
                                            'ISO-8859-16',
                                            'ISO-8859-17',
                                            'ISO-8859-18',
                                            'ISO-8859-19',
                                            'ISO-8859-20',
                                            'ASMO-708',
                                            'DOS-720',
                                            'x-mac-arabic',
                                            'windows-1256',
                                            'ibm775',
                                            'windows-1257',
                                            'ibm852',
                                            'x-mac-ce',
                                            'windows-1250',
                                            'gb18030',
                                            'EUC-CN',
                                            'gb2312',
                                            'gb18030',
                                            'hz-gb-2312',
                                            'x-mac-chinesesimp',
                                            'big5',
                                            'x-Chinese-CNS',
                                            'x-Chinese-Eten',
                                            'x-mac-chinesetrad',
                                            'cp866',
                                            'koi8-r',
                                            'koi8-u',
                                            'x-mac-greek',
                                            'windows-1253',
                                            'ibm869',
                                            'DOS-862',
                                            'iso-8859-8-i',
                                            'x-mac-hebrew',
                                            'windows-1255',
                                            'x-EBCDIC-Arabic',
                                            'x-EBCDIC-CyrillicRussian',
                                            'x-EBCDIC-CyrillicSerbianBulgarian',
                                            'x-EBCDIC-DenmarkNorway',
                                            'x-ebcdic-denmarknorway-euro',
                                            'x-EBCDIC-FinlandSweden',
                                            'x-ebcdic-finlandsweden-euro',
                                            'x-ebcdic-finlandsweden-euro',
                                            'x-iscii-as',
                                            'unicode',
                                            'unicodeFFFE',
                                            'utf-7',
                                            'utf-8',
                                            'us-ascii',
                                            'windows-1258',
                                            'x-IA5',
                                            'Windows-1252'
                                        );

                for each(var csStr:String in cs){

                    var info:String = _socket.readMultiByte(_socket.bytesAvailable, csStr);
                    temp = csStr + ":" + info;

                    if(info.length > 0)
                        dispatchEvent(new TextEvent(EVENT_ON_DATA_RECEIVED, false, false, temp) );
                }

The only value that contains a value is ISO-8859-1. and and it looks like this:enter image description here

The custom board is supposed to send something like : 0x40

So, not sure what is the best approach here (I know there are more charset I can try). Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T11:30:01+00:00Added an answer on May 22, 2026 at 11:30 am

    Are you trying to guess unknown encoding? Look at raw bytes that board sends to check whether they are bit-shifted.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making a simple page using Google Maps API 3. My first. One marker
We're building an app, our first using Rails 3, and we're having to build
I have thousands of HTML files to process using Groovy/Java and I need to
I am using Paperclip to handle profile photo uploads in my app. They upload
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I used javascript for loading a picture on my website depending on which small
I have a jquery bug and I've been looking for hours now, I can't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.