Text cut off on save

Your browser doesn’t send the copied text UTF-8 encoded to the server. On the first character that isn’t UTF-8 compatible, in your example the apostrophe – ’ –, the stream to the data base is broken and not recovered. That’s a browser issue. If I had to guess – well, I have because you didn’t … Read more

WordPress load-scripts.php encoding issue

Can you provide the request header you get in your browser? It should follow this form: File: load-scripts.php 56: header(“Etag: $wp_version”); 57: header(‘Content-Type: application/javascript; charset=UTF-8’); 58: header(‘Expires: ‘ . gmdate( “D, d M Y H:i:s”, time() + $expires_offset ) . ‘ GMT’); 59: header(“Cache-Control: public, max-age=$expires_offset”); The request header is OK. I can confirm I … Read more

How to encode post content as JSON?

To output JSON always the function json_encode( $string ). The function is not available on all hosts. Don’t worry, WordPress offers a fallback in wp-includes/compat.php. That’s a wrapper for class Services_JSON::encodeUnsafe() (see wp-includes/class-json.php). If you take a look at the source you’ll see: It’s not a trivial job to encode a string. 🙂 There is … Read more

Remove “Category Archives: title” at the top of a category page [duplicate]

The text is coming from Twenty Eleven theme’s category.php file. There are two ways to remove it: A) Removing it using a Text/CODE Editor on the File System/FTP: This is the recommended method Go to Your WordPress Installation Folder. Then wp-content/themes/twentyeleven folder. Then open the category.php file in a Text or CODE Editor. On line … Read more

How to increase the character limit for post name of 200?

It happens because when you save a post, WordPress calls sanitize_title function to sanitize your title. This function applies sanitize_title filter. One of core hooks for sanitize_title filter is sanitize_title_with_dashes function, which checks title on utf8 format by calling seems_utf8 function and if the title has utf8 format, the function call utf8_uri_encode function. utf8_uri_encode function … Read more

Non-Latin Characters in permalinks

You must go about the language functions-interface. See my example for german users: http://wordpress-buch.bueltge.de/wp-content/uploads/2010/05/de_DE.phps We must also build differences on the permalinks for aour charachters in our language /* define it global */ $umlaut_chars[‘in’] = array( chr(196), chr(228), chr(214), chr(246), chr(220), chr(252), chr(223) ); $umlaut_chars[‘ecto’] = array( ‘Ä’, ‘ä’, ‘Ö’, ‘ö’, ‘Ü’, ‘ü’, ‘ß’ ); … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)