PMDF System Manager's Guide


Previous Next Contents Index


translate ascii_to_printablestring

Translate an ASCII string to a printable-string encoding of the string.

Syntax

translate ascii_to_printablestring string

Command Qualifiers Defaults
None. None.

Parameters

string

An ASCII string.

Description

The translate ascii_to_printablestring command translates an ASCII string to a printable-string, using the multi-character substitutions specified in RFC 2156 for ASCII characters that have no printable-string equivalent.


Examples

This example illustrates the transformation of the ASCII string


"First Last"@example.com 
to a printable-string version of the string. Note that ASCII string corresponds to a rather common form of Internet address. But such a string cannot be literally represented in an X.400 address (if for instance one wants to embed this address using the DD.RFC-822 X.400 attribute), since the quote character and at character are not printable-string characters---such characters have to be encoded, as with the RFC 2156 multi-character substitutions.


% pmdf test -x400 -x488
X400> translate ascii_to_printable """First Last""@example.com"
Result: (q)First Last(q)(a)example.com 


Previous Next Contents Index