assertSame( $iso8859_1, wp_htmledit_pre( $iso8859_1 ) ); remove_filter( 'pre_option_blog_charset', array( $this, 'charset_iso_8859_1' ) ); } public function charset_utf_8() { return 'UTF-8'; } /* * @ticket 23688 */ public function test_wp_htmledit_pre_charset_utf_8() { add_filter( 'pre_option_blog_charset', array( $this, 'charset_utf_8' ) ); $utf8 = 'Fran' . chr( 195 ) . chr( 167 ) . 'ais'; $this->assertSame( $utf8, wp_htmledit_pre( $utf8 ) ); remove_filter( 'pre_option_blog_charset', array( $this, 'charset_utf_8' ) ); } }