Title: wp_iso_descrambler
Published: April 25, 2014
Last modified: February 24, 2026

---

# wp_iso_descrambler( string $subject ): string

## In this article

 * [Parameters](https://developer.wordpress.org/reference/functions/wp_iso_descrambler/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/functions/wp_iso_descrambler/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/functions/wp_iso_descrambler/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/functions/wp_iso_descrambler/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/wp_iso_descrambler/?output_format=md#wp--skip-link--target)

Converts to ASCII from email subjects.

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/wp_iso_descrambler/?output_format=md#parameters)󠁿

 `$subject`stringrequired

Subject line.

## 󠀁[Return](https://developer.wordpress.org/reference/functions/wp_iso_descrambler/?output_format=md#return)󠁿

 string Converted string to ASCII.

## 󠀁[Source](https://developer.wordpress.org/reference/functions/wp_iso_descrambler/?output_format=md#source)󠁿

    ```php
    function wp_iso_descrambler( $subject ) {
    	/* this may only work with iso-8859-1, I'm afraid */
    	if ( ! preg_match( '#\=\?(.+)\?Q\?(.+)\?\=#i', $subject, $matches ) ) {
    		return $subject;
    	}

    	$subject = str_replace( '_', ' ', $matches[2] );
    	return preg_replace_callback( '#\=([0-9a-f]{2})#i', '_wp_iso_convert', $subject );
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/formatting.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/formatting.php#L3644)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/formatting.php#L3644-L3652)

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/wp_iso_descrambler/?output_format=md#changelog)󠁿

| Version | Description | 
| [1.2.0](https://developer.wordpress.org/reference/since/1.2.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fwp_iso_descrambler%2F)
before being able to contribute a note or feedback.