Special characters in WordPress UTF-8 [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 10 years … Read more

(un)wptexturize() — is it possible?

I have some text stored in a string $text that’s filtered through the_content and therefore, wptexturize(). wptexturize() is a function that replaces various characters into more prettier ones. Is there any way that I can unwptexturize() the string? Revert it back to what it was. What I’ve danced with so far I can replace smart … Read more

excerpt in characters

I have code in functions.php: function string_limit_words($string, $word_limit) { $words = explode(‘ ‘, $string, ($word_limit + 1)); if(count($words) > $word_limit) array_pop($words); return implode(‘ ‘, $words); } but i need to limit excerpt in number of characters, could you help me with that? 4 s 4 I used this code in one of my last projects: … Read more

Problem with Hebrew characters in username

I wrote a plugin to enable hebrew characters in usernames. This is the full code: add_filter (‘sanitize_user’, ‘hu_sanitize_user’, 10, 3); //Overrides the WordPress sanitize_user filter to allow hebrew letters and english letters only function hu_sanitize_user ($username, $raw_username, $strict) { //Strip HTML Tags $username = wp_strip_all_tags ($raw_username); //Remove Accents $username = remove_accents ($username); //Kill octets $username … Read more

Wordspress add into my javascripts

I use a slider called revoslider and use it via shortcode. When i use the shortcode and do not use visual editor for insert and save, the slider does not work because WordPress adds <p> into javascript like this : <p> <script type=”text/javascript”></p> <p> var tpj=jQuery;</p> <p> tpj.noConflict();</p> <p> var revapi1;</p> <p> tpj(document).ready(function() {</p> <p> … Read more

Strange characters – despite everything being UTF-8

Not sure why this thread was closed, but this is the same issue inflicting many people. All my WP config settings are in order: //define(‘DB_CHARSET’, ‘utf8’); //define(‘DB_CHARSET’, ‘utf8_unicode_ci’); //define(‘DB_COLLATE’, ”); I even tried enabling them one by one. None worked. When I save a post, weird characters appear in place of apostrophes and spaces. This … Read more

If a hacker changed the blog_charset to UTF-7 does that make WordPress vulnerable to further attacks?

I had a client who got hacked recently and I noticed that there were weird characters appearing on her site, like  and Æ. It turns out that the hackers changed the blog_charset to UTF-7 in the wp_options table in the database. I set it back to UTF-8, but I was wondering if during the … Read more