Current Location: Home> Function Categories> quoted_printable_decode

quoted_printable_decode

Convert a quotation-marked printable string to an 8-bit string
Name:quoted_printable_decode
Category:String
Programming Language:php
One-line Description:Convert the quoted-printable string to an 8-bit string.

Definition and usage

quoted_printable_decode() decodes the quoted-printable encoded string and returns an 8-bit ASCII string.

Tip: The data encoded by quoted-printable is different from those modified by email transmission. Full US-ASCII text can be quoted-printable encoded to ensure data integrity when messaging via text translation or a line packet gateway.

Example

Decode the quoted-printable string into an 8-bit ASCII string:

 <?php
$str = "Hello=0Aworld." ;
echo quoted_printable_decode ( $str ) ;
?>

The browser output of the above code:

 Hello world.

The HTML output of the above code is as follows (see the source code):

 Hello
world.

Try it yourself

grammar

 quoted_printable_decode ( string )
parameter describe
string Required. Specifies the quoted-printable string to be decoded.
Similar Functions