# 2.2 Character Sets

Compaq Fortran supports the following characters:

- The Fortran 95/90 character set which consists of the following:
  - All uppercase and lowercase letters (A through Z and a through z)
  - The numerals 0 through 9
  - The underscore ( _ )
  - The following special characters:

  Character | Name | Character | Name
  --- | --- | --- | ---
  blank or <Tab> | Blank (space) or tab | : | Colon
  = | Equal sign | ! | Exclamation point
  + | Plus sign | " | Quotation mark
  - | Minus sign | % | Percent sign
  * | Asterisk | & | Ampersand
  / | Slash | ; | Semicolon
  ( | Left parenthesis | < | Less than
  ) | Right parenthesis | > | Greater than
  , | Comma | ? | Question mark
  . | Period (decimal point) | $ | Dollar sign (currency symbol)
  `'` | Apostrophe |  |

- Other printable characters

  Printable characters include the tab character (09 hex), ASCII characters with codes in the range 20(hex) through 7E(hex), and characters in the DEC Multinational Extension to the ASCII Character Set with codes in the range A1(hex) through FE(hex).

  Printable characters that are not in the Fortran 95/90 character set can only appear in comments, character constants, Hollerith constants, character string edit descriptors, and input/output records.

Uppercase and lowercase letters are treated as equivalent when used to specify program behavior (except in character constants and Hollerith constants).

For More Information:

- On the ASCII and DEC Multinational character sets for OpenVMS, Tru64 UNIX, and Linux systems, see Appendix C.
- On other character sets available for Windows systems, see the online documentation for those systems.

Previous Page Next Page Table of Contents