Special characters can truncate WP Option value
|Reported by:||TobiasBg||Owned by:|
I recently experienced something weird when adding a string from a foreign language as the value of a WP Option.
add_option( 'weird_character_test', 'test1ð †¢test2' );
This will only be saved as "test1" in the wp_options table, as one can see after
echo get_option( 'weird_character_test' );
or quicker on /wp-admin/options.php.
Could this be UTF8 related? DB collation is "utf8_general_ci". Or could it be the result of sanization?