PrintableString

Restricted character string type


title: "PrintableString" type: doc version: 1 created: 2026-02-28 author: "Wikipedia contributors" status: active scope: public tags: ["character-sets"] description: "Restricted character string type" topic_path: "general/character-sets" source: "https://en.wikipedia.org/wiki/PrintableString" license: "CC BY-SA 4.0" wikipedia_page_id: 0 wikipedia_revision_id: 0

::summary Restricted character string type ::

A PrintableString is a restricted character string type in the ASN.1 notation. It is used to describe data that consists only of a specific printable subset of the ASCII character set.

According to the ASN.1 Specification of basic notation, the character set of PrintableString can be expressed as:

::data[format=table]

NameGraphicASCII Code (DEC)ASCII Code (HEX)
Latin capital lettersA,B, ... Z65 - 9041 - 5A
Latin small lettersa,b, ... z97 - 12261 - 7A
Numbers0,1, ... 948 - 5730 - 39
SPACE(space)3220
APOSTROPHE'3927
LEFT PARENTHESIS(4028
RIGHT PARENTHESIS)4129
PLUS SIGN+432B
COMMA,442C
HYPHEN-MINUS-452D
FULL STOP.462E
SOLIDUS/472F
COLON:583A
EQUALS SIGN=613D
QUESTION MARK?633F
::

The PrintableString definition does not include the at sign (@) or ampersand (&). This sometimes causes problems for naive implementers who attempt to put an SMTP email address into an X.509 digital certificate Distinguished Name.

The PrintableString definition does not include asterisk (*) which means it must not be used to represent a wildcard in an X.509 digital certificate Distinguished Name.

References

References

  1. [http://www.itu.int/rec/T-REC-X.680-200811-I/en Information technology – Abstract Syntax Notation One (ASN.1): Specification of basic notation], ITU-T X.680, 07/2002

::callout[type=info title="Wikipedia Source"] This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page. ::

character-sets