`
universsky
  • 浏览: 92412 次
文章分类
社区版块
存档分类
最新评论

Ascii Codes

 
阅读更多

Ascii Codes

It is a very well-known fact that computers can manage internally only 0s (zeros) and 1s (ones). This is true, and by means of sequences of 0s and 1s the computer can express any numerical value as its binary translation, which is a very simple mathematical operation (as explained in the paper numerical bases).

Nevertheless, there is no such evident way to represent letters and other non-numeric characters with 0s and 1s. Therefore, in order to do that, computers use ASCII tables, which are tables or lists that contain all the letters in the roman alphabet plus some additional characters. In these tables each character is always represented by the same order number. For example, the ASCII code for the capital letter "A" is always represented by the order number 65, which is easily representable using 0s and 1s in binary: 65 expressed as a binary number is 1000001.

The standard ASCII table defines 128 character codes (from 0 to 127), of which, the first 32 are control codes (non-printable), and the remaining 96 character codes are representable characters:

* 0 1 2 3 4 5 6 7 8 9 A B C D E F 0 1 2 3 4 5 6 7
NUL SOH STX ETX EOT ENQ ACK BEL BS TAB LF VT FF CR SO SI
DLE DC1 DC2 DC3 DC4 NAK SYN ETB CAN EM SUB ESC FS GS RS US
! " # $ % & ' ( ) * + , - . /
0 1 2 3 4 5 6 7 8 9 : ; < = > ?
@ A B C D E F G H I J K L M N O
P Q R S T U V W X Y Z [ \ ] ^ _
` a b c d e f g h i j k l m n o
p q r s t u v w x y z { | } ~

* This panel is organized to be easily read in hexadecimal: row numbers represent the first digit and the column numbers represent the second one. For example, the "A" character is located at the 4th row and the 1st column, for that it would be represented in hexadecimal as 0x41 (65).

Because most systems nowadays work with 8bit bytes, which can represent 256 different values, in addition to the 128 standard ASCII codes there are other 128 that are known as extended ASCII, which are platform- and locale-dependent. So there is more than one extended ASCII character set.

The two most used extended ASCII character sets are the one known as OEM, that comes from the default character set incorporated by default in the IBM-PC and the other is the ANSI extend ASCII which is used by most recent operating systems.

The first of them, the OEM character set, is the one used by the hardware of the immense majority of PC compatible machines, and was also used under the old DOS system. It includes some foreign signs, some marked characters and pieces to represent panels.


The ANSI character set is a standard that many systems incorporate, like Windows, some UNIX platforms and many standalone applications. It includes many more local symbols and marked letters so that it can be used with no need of being redefined in many more languages:


分享到:
评论

相关推荐

    ascii.zip_If..._ascii

    ASCII codes, download if you want

    ascii.zip_The Program

    A simple program that shows the ASCII codes and their meanings.

    An Introduction to Programming with C++

    appEndix B aSCii Codes 595 appEndix C Common Syntax errors 597 appEndix d How To Boxes 599 index 603 The answers pdf and data files can be found online at CengageBrain com Brief contents

    Wrox.Beginning Visual C++ 2008

    Introduction Chapter 1: Programming with Visual C++ 2008 Chapter 2: Data, Variables, and Calculations Chapter 3: Decisions and Loops ...Appendix B: ASCII Codes Appendix C: Windows Message Types Index

    ASCII.rar_The English

    ASCII codes represent text in computers, communications equipment, and other devices that use text. Most modern character-encoding schemes are based on ASCII, though they support many more characters...

    ARM.Assembly.Language.Programming.&.Architecture

    2) Who uses ARM? Currently ARM CPU is licensed and produced by more than 100 companies and is the dominant CPU chip in both cell phones and tablets. Given its RISC architecture...Appendix F: ASCII Codes

    c++官方网站标准参考资料

    Ascii Codes, Numerical Bases, Boolean Operations ), Information( C++ Language FAQ, History of C++, A brief description ), Sourcecode( 这个太多了,不一一列出, C++ Tutorial Sources(这是本很不错的...

    ,ARM9 S3C2440开发的不停循环检测温度值,并转换为ascii码,通过串口传出来的ADS工程

    ARM9 S3C2440开发的不停循环检测温度值,并转换为ascii码,通过串口传出来的ADS工程-ARM9 S3C2440 development of non-stop loop detection temperature values and convert to ascii codes, coming out through the...

    MIPS汇编语言程序设计

    中文名: MIPS汇编语言程序设计 原名: MIPS Assembly Language Programming ...APPENDIX B: ASCII Codes APPENDIX C: Integer Instruction Set APPENDIX D: Macro Instructions APPENDIX E: A Trap Handler

    ascii-codes:ASCII 表参考和查找函数

    npm install ascii-codes 用法 var ascii = require ( 'ascii-codes' ) ; var assert = require ( 'assert' ) ; assert . equal ( "A" , ascii . symbolForDecimal ( 65 ) ) ; assert . equal ( "A" , ascii . ...

    The Indispensable PC Hardware Book - rar - part1. (1/7)

    ASCII Code. Negative Integers and Two's Complement. Hexadecimal Numbers. BCD Numbers. Little Endian Format and Intel Notation. Logic Gates. Basic Logical Elements. CMOS Inverters as Low...

    Python判断文件和字符串编码类型的实例

    # 说明:UTF兼容ISO8859-1和ASCII,GB18030兼容GBK,GBK兼容GB2312,GB2312兼容ASCII CODES = ['UTF-8', 'UTF-16', 'GB18030', 'BIG5'] # UTF-8 BOM前缀字节 UTF_8_BOM = b'\xef\xbb\xbf' # 获取文件编码类型 def

    前端开源库-ascii-art

    前端开源库-ascii-artascii-art、ansi-codes、figlet字体和ascii-art。100%JS

    Key Codes:显示您键入的密钥及其 ASCII 代码编号的快速工具。-开源

    如果它是一个修饰键,输入一些东西并按住它,你会看到你输入的键和那个字符的 ASCII 编码号。

    javascript输出AscII码扩展集中的字符方法

    下面小编就为大家带来一篇javascript输出AscII码扩展集中的字符方法。小编觉得挺不错的,现在就分享给大家,也给大家做个参考。一起跟随小编过来看看吧,祝大家游戏愉快哦

    ascii-art:Node.js库,用于ansi代码,figlet字体,ASCII艺术和其他ASCII图形

    _ _ _ (_)(_) | | __ _ ___ ___ _ _ ______ __ _ _ __ | |_ / _` |/ __| / __|| || ||______| / _` || '__|| __| | (_| |\__ \| (__ | || | | (_| || | | |_ ... 同样,我提供ascii-art作为的更新,扩展

    RS-232 linux下工具 源码

    Sending Hex Codes to a Device $ rs232 -d /dev/ttyS1 -s"\h52 30 31 OD\h\p\h52 30 31 OD" -r8 --verbose /dev/ttyS1 9600 8n1 +dtr -rts -cts -dsr send [hex](52)(30)(31)(d)[ascii][pause] wait 0.500000 ...

    cities5000.zip

    alternatenames : alternatenames, comma separated, ascii names automatically transliterated, convenience attribute from alternatename table, varchar(10000) latitude : latitude in decimal degrees (wgs...

    fortran 90

    一本很好的介绍fortran的资料,Cap 1 - Getting Going: 5 Cap 2 - Chapter 2 Elementary Fortran: I: 8 ...App D - Appendix D ASCII Character Codes: 273 App E - Appendix E Solutions to Selected Exercises: 274

    tip linux串口调试工具 C语言源码 ARM开发工具

    -t translate 5 bit codes to ascii -x use software flow (xon/xoff) -r use hardware flow (rts/cts) -f pass xon/xoff flow control to remote -s baud rate (default 9600) -w capture remote output to ...

Global site tag (gtag.js) - Google Analytics