Shop OBEX P1 Docs P2 Docs Learn Events
Can't find a table for the High ASCII characters. — Parallax Forums

Can't find a table for the High ASCII characters.

YoMista!YoMista! Posts: 7
edited 2007-09-22 18:29 in BASIC Stamp
Can anyone tell me where to find a table·for the upper (128-255) ASCII characters as they exist in the BS2 - I already know they don't match the standard High ASCII characters.

I tried writing a little program to·generate·a table in the Debug terminal and I've been able to get a look at the characters from 128 - 239, but (I suspect) the control characters are throwing the thing off.· Problem is, I need to accurately see the position of each "character" within it's character space.

Thanks

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-09-21 01:34
    The upper 128 byte values are not really part of ASCII which was designed for use with a possible parity bit in the high order bit of a byte. The Stamps themselves don't know about values above 127 although the compiler will compile 8 bit constants based on characters within double quotes. You'll have to look at the keyboard translate table and display font tables being used by Windows. These are configurable and depend partly on the language being used by Windows. If you're using a Mac or Linux, the same notion applies.

    The short answer is that it has nothing to do with the Stamp itself and has all to do with the display font configured in Windows.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-09-21 15:09
    Hello,

    Values from 128 through 255 are considered Extended ASCII (some have said ANSI) and the characters displayed by various computer platforms can vary greatly and are often specific to a platform. On LCD Displays they are often Katakana Characters and other less used characters. To a BASIC Stamp any number from 0 through 255 is a byte. It doesn’t matter if you’re using an ASCII value or not. It’s all 1’s and 0’s to the microcontroller. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2007-09-21 17:23
    There's a table of the most common character set (ISO 8859-1) posted here. The characters above 160 ($A0) are included in most "standard" fonts and will display properly on a PC or Mac. The characters between 128 ($80) and 159 ($9F) are not really part of the ISO 8859-1 character set and will vary from system to system and font to font. Windows uses a superset of the ISO 8859-1 character set called "Code Page 1252" that defines the characters shown in the table, but not all typefaces include these characters. (This can be particularly galling, since that's where the m-dash "—"and n-dash "–" reside.)

    To accommodate the breadth of characters required for other languages and purposes, a new system, Unicode, is coming into vogue. The Parallax (Propeller) typeface, for example, contains Unicode characters in the PC-resident TrueType font that get mapped back to to extended ASCII codes in the Propeller's ROM.

    -Phil
  • Mark BramwellMark Bramwell Posts: 56
    edited 2007-09-22 05:15
    I checked out that link for the high-ascii table. It seems to be different from this website: www.asciitable.com/
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2007-09-22 06:14
    I think that character set predates Windows. Here's how you can tell what character set you're currently using in Windows:

    1. Open an editor window. The forum Quick Reply window works fine for this.
    2. Activate Num Lock on your keyboard.
    3. Hold down the Alt key, and type a four digit decimal ASCII code on the numeric keypad: i.e. for 128, type 0128.
    4. Release the Alt key.
    5. That extended ASCII character from your current character set will appear on the edit screen.

    -Phil
  • TechnoRobboTechnoRobbo Posts: 323
    edited 2007-09-22 18:29
    That's the old codepage 437 from when we use to have to load ansi.sys in the config.sys file
    and go BBSing.

    If you Wiki "code page", you'll see that dates back to the old Wang word processers.

    It's very anglo-centric, not suited for international use.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Have Fun


    TR
Sign In or Register to comment.