quoted_printable_decode
Convert a printable string with quotes to an 8-bit string
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.
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
quoted_printable_decode ( string )
parameter | describe |
---|---|
string | Required. Specifies the quoted-printable string to be decoded. |