Title: options_reading_blog_charset
Published: April 25, 2014
Last modified: August 20, 2026

---

# options_reading_blog_charset()

## In this article

 * [Source](https://developer.wordpress.org/reference/functions/options_reading_blog_charset/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/options_reading_blog_charset/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/options_reading_blog_charset/?output_format=md#changelog)

Render the site charset setting.

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

    ```php
    function options_reading_blog_charset() {
    	echo '<input name="blog_charset" type="text" id="blog_charset" value="' . esc_attr( get_option( 'blog_charset' ) ) . '" class="regular-text" />';
    	echo '<p class="description">' . __( 'The <a href="https://wordpress.org/documentation/article/wordpress-glossary/#character-set">character encoding</a> of your site (UTF-8 is recommended)' ) . '</p>';
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/options.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-admin/includes/options.php#L136)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/options.php#L136-L139)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/options_reading_blog_charset/?output_format=md#related)󠁿

| Uses | Description | 
| [__()](https://developer.wordpress.org/reference/functions/__/)`wp-includes/l10n.php` |

Retrieves the translation of $text.

  | 
| [esc_attr()](https://developer.wordpress.org/reference/functions/esc_attr/)`wp-includes/formatting.php` |

Escaping for HTML attributes.

  | 
| [get_option()](https://developer.wordpress.org/reference/functions/get_option/)`wp-includes/option.php` |

Retrieves an option value based on an option name.

  |

[Show 1 more](https://developer.wordpress.org/reference/functions/options_reading_blog_charset/?output_format=md#)
[Show less](https://developer.wordpress.org/reference/functions/options_reading_blog_charset/?output_format=md#)

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

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

## User Contributed Notes

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