The tag has no wiki summary.

learn more… | top users | synonyms

13
votes
1answer
3k views

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 ...
5
votes
1answer
164 views

Add whitespace between Chinese and other letters

I want to add a space between a Chinese character and a letter or a number to make the article more readable. For example: Google与Apple展开的专利大战在2天之前结束。 Google 与 Apple 展开的专利大战在 2 天之前结束。 But ...
4
votes
1answer
811 views

Truncating custom fields

I'm using custom fields to pull a secondary description. I'd like to use the built in WordPress truncate but can't seem to figure it out. $desc = get_post_meta($post->ID, "youtube-desc", true); ...
4
votes
2answers
208 views

One for the gurus: upgrade to 3.x messed up only filenames with accented chars

After upgrading from 2.8.x (maybe it was 2.9.x) to 3.1.2, all the references inside posts to filenames (usually images) which contain accented chars stopped working. Before, filenames that are ...
3
votes
3answers
3k views

Character encoding issue after changing servers

I recently moved my WordPress-based site from DreamHost VPS to a Linode VPS running Debian + LEMP. After getting the site up again, I noticed many erroneous characters in posts; characters like " and ...
3
votes
1answer
1k views

Allowing non-latin characters in registration

I am from Turkey and we have "şŞçÇğĞüÜöÖıİ" characters in our alphabet. I want to use those characters in permalinks/slugs/usernames. I found temporary solution for permalinks/slugs with ...
3
votes
1answer
968 views

Non-Latin Characters in permalinks

I was opened this idea 7 months ago: http://wordpress.org/extend/ideas/topic/non-latin-characters-need-love Still i couldnt find a solution for it. Simply what i want? Want to use "şŞ İı Ğğ Üü Öö ...
2
votes
2answers
7k views

How can I stop TinyMCE from converting my HTML entities to characters?

Here's the problem: I paste the HTML entity code for, let's say, a service mark (℠) into the HTML view of the editor. As soon as I switch to the "visual" tab, my entity code is turned into ...
2
votes
2answers
200 views

How to diagnose and keep in check encoding issues?

What we have for a project is: multiple sites (production, test, local development); migrated by multiple methods (PHPMyAdmin, Navicat, BackupBuddy); And the issue we are having is that while ...
2
votes
1answer
1k views

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

I have post name in Thai which uses UTF-8 character. Many of them encode into super long in ASCII e.g. วิธีการหลีกเลี่ยงข้อผิดพลาดทั้ง-8-ในชีวิตการแต่งงาน I've changed the type of "post_name" using ...
2
votes
2answers
1k views

WordPress Database Charset/Collate

Is there an easy way of getting the charset and collation of the DB tables in WordPress without resorting to SQL queries?
2
votes
1answer
197 views

Text cut off after the character 𪇆 in TinyMCE

I use the latest version of wordpress (v3.9.2, Taiwan Chinese Traditional), and found it can not display this Chinese word 𪇆, but other Chinese words can be displayed normally. I just use this word ...
2
votes
1answer
38 views

Site Rss not seen by browser

We have a site http://ort.org.il built with WP 3.1.2. Its RSS address should be http://ort.org.il/feed/, but nothing shows up there. I can see the feed in the View Source, but not in the browser, and ...
2
votes
1answer
96 views

Wordpress problem with htmlentities

I make some changes over the post before storing it in the database. I use content_save_pre to do this. Some characters like " get done into “ in the JavaSript code which I insert (part of ...
1
vote
3answers
2k views

Text cut off on save

I am using WP 3.4. My problem occurs when I attempt to copy and paste anything into the post or page editor of WordPress. The situation arises every time I save or attempt to preview the post. The ...
1
vote
1answer
2k views

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', ...
1
vote
2answers
692 views

What is WordPress file encoding?

I noticed that WordPress files use UNIX end-of-line and UTF-8 without BOM. Is this a standard that should be used? Is there anything else to pay attention to? I noticed that Filezilla fails to ...
1
vote
2answers
994 views

Apostrophes showing up as ΓÇÖ after converting from Windows to Linux

I'm trying to move my WordPress blog from Windows to Linux, but I'm seeing a weird character encoding problem in the Linux version that I'm not seeing on Windows. (I had thought it was an issue with ...
1
vote
1answer
952 views

How to encode post content as JSON?

I`m trying to construct a json object but are having difficulties with the_content since it returns newlines, which causes the script to fail. The error messages received is: Uncaught SyntaxError: ...
1
vote
1answer
532 views

Post Content, Special Characters and Filters

I added a hook to the_content. add_filter('the_content', 'edit_the_content'); function edit_the_content($content){ return $content; } Pretty simple right? However, when it output $content from ...
1
vote
1answer
2k views

How to get my post title to work with an apostrophe ('s)?

When saving a post with the title Jule's Gormet, it gets formatted as Jule's Gormet. If I save it again, it becomes Jule's Gormet. Following this pattern, it keeps escaping ...
1
vote
1answer
531 views

Non latin post slug truncate

I created a custom post type and set its permalink structure to 'category/postname'. I found that sometimes, when i create a post in a non latin characters, the post slug is getting cut. I googled ...
1
vote
1answer
730 views

Is sanitize_title_with_dashes formatting function too liberal (in terms of accepted characters)?

sanitize_title_with_dashes (see code below for reference) is the function Wordpress uses to format "pretty" urls. However, contrary to the function's comment header, it allows much more than ...
1
vote
1answer
200 views

Editing URL character replacement

Whereabouts can I edit which characters in permalinks are replaced? For example apostrophe's are replaced with nothing, and I would like to have them replaced with hyphens instead. Thanks.
1
vote
1answer
54 views

How to use Japanese characters for a single page

I've been asked to produce a single page on a client's Wordpress site that has a Japanese translation of key paragraphs from the site. The straight copy and paste from the translated text in a Word ...
1
vote
0answers
64 views

esc_js() breaks unicode sequences by removing the slash '\' character

I've noticed that esc_js() is breaking unicode encoded characters by removing the '\' (slash) character. For example: esc_js('\u041f') returns: 'u041f' I can potentially use REGEX to identify ...
1
vote
1answer
111 views

Post editor loads empty

I am running WordPress 3.8 and I recently switched server, so didn't realize when the problem creep in but most likely its the server change and I need some help figuring it out. When I open post ...
1
vote
0answers
139 views

Symbols such as £ end up being  in the database

Any posts with symbols such as £ or & or ♥ end up being  or worse. It doesn't show in the admin panel on the edit post page, but it is saved in the database as  and shows on the actual live blog ...
1
vote
3answers
516 views

Faulty restore of the database, encoding issue

I messed up the settings with W3 Total Cache (tried to import all the media to my library, didn't work out well, broke all my links to every picture). So I took my latest backup of the database, ...
0
votes
3answers
3k views

Word press replacing unicode characters with “?”s

I've noticed that Wordpress has recently started replacing any unicode characters I enter with question marks. There are a couple of people who've had this issue on the word press forums but no one ...
0
votes
2answers
514 views

Special Character Appearing in my WordPress Pages Content

Can somebody please assist as to why I am getting the following special character � in my WordPress content pages. Not sure how it got in there. You can see this special character at this url: PPS ...
0
votes
1answer
361 views

Outputting post title without encoding

I'm setting up a way to feed the title of a WP post as the title argument for a reddit button. It works fine unless there is an encoded character in the string: apostrophe’s break things. ...
0
votes
3answers
848 views

Problems character encoding for pages in multiple languages

I have a site that is in English but has a lot of German and Spanish names in it. Originally I was using UTF8, but that gave me problems with some of the German special characters. So I switched to: ...
0
votes
1answer
53 views

Function to replace comment's accented characters before posting

I have some weird problems with encoding my Wordpress website and I can't add comments with accent words. when i try to do it, i received error by WP. What i need is just a function that read the ...
0
votes
1answer
39 views

Question mark on special chars

Yesterday i was working on a file when notepad++ crashed. I then went in the backup folder of the program to restore the file. After the restoration, special chars (such as € or accented letters) are ...
0
votes
1answer
258 views

Email Obfuscation: Is antispambot() Acceptable? [closed]

I've been looking into Email Obfuscation and trying to get away from obfuscation plugins when I ran across this code snippet[1]: function remove_plaintext_email($emailAddress) { $emailRegEx = ...
0
votes
2answers
27 views

Encoding Issue while using French in WordPress

I just migrated some content from another CMS [SPIP] into WordPress and I am seeing weird characters like ' Unité dans la diversité ', this is supposed to come in french but its not . Please let me ...
0
votes
1answer
43 views

Wordpress site stopped working after simply opening header.php in the wp-admin editor

I opened header.php inside the wp-admin editor and suddenly the actual site is filled with diamond shaped question marks. Admin area still works. The weird thing is that I didn't even perform any ...
0
votes
1answer
2k views

Images are not showing after moving Wordpress installation from server to localhost?

I moved my wordpress installation from server to localhost on my pc using the instructions in the following link ...
0
votes
1answer
353 views

encoded search terms with %20

<form class="search-form" action="<?php echo home_url( '/suche/' ); ?>" method="get"> <input type="text" name="s" class="s" value="<?php the_search_query(); ?>" /> this ...
0
votes
2answers
437 views

How to deal with apostrophes

I'm doing an INSERT into a wordpress table and anything with an apostrophe is coming out It\'s true I tried using htmlspecialchars but I'm still getting the backslash. Is there any way to write ...
0
votes
1answer
478 views

Problem with UTF8. italian/russian characters

I'm using an RSS feed importer. When i preview the feed, the special characters such as è,à and so on are throwing out gibberish. Searching on the WP.org forum I came across the suggestion to add the ...
0
votes
1answer
154 views

What is wp_check_invalid_utf8?

The following function checks option, if *blog_charset* is not utf8, than return original string. What is the purpose of this? function sc_check_invalid_utf8( $string, $strip = false ) { $string ...
0
votes
1answer
218 views

How to automatically convert “%” and “+” in image urls on upload

I mass import products via csv and use this plugin http://wordpress.org/extend/plugins/cache-images/ to download the images to my server. Problem is some of the image urls have % and + characters in ...
0
votes
1answer
230 views

Problems with wierd characters and my plugin

There are special characters that can cause problems in word press, like the infamous microsoft word smart quotes. However, there are many that are captured and dealt with. My collegue and I have ...
0
votes
0answers
55 views

wpdb->query and non-ASCII characters in given query

recently I'm dealing with wordpress and I find myself running a table creation query in a plugin through the function $wpdb->query (this wpdb class). Everything is fine until I put a non-ASCII ...
0
votes
3answers
393 views

All of my wordpress sites showing †Ù¥

This morning I was going to keep working on my Wordpress page, then when I put in the domain name it only showed this: †Ù¥ I then checked my other sites who I hadn't touched in a while and they also ...
0
votes
0answers
54 views

Text cut off with special characters

There are posts about this. However I can't fix it. WordPress or PHP or MySQL are cutting off the text after saving a page. This happens when there is a special character like ’ or ™. The ...
0
votes
0answers
30 views

How to print out database content like declared in DB_CHARSET?

Ok i created some table with Romanian names "CREATE TABLE `wp_drzava` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `Kod` varchar(2) NOT NULL, `Naziv` varchar(100) NOT NULL, `NazivSrb` varchar(100) ...
0
votes
0answers
27 views

Encoding Russian problem

I translated my plugin with poedit, and it works fine on localhost, but when i uploaded my files on server, some russian charachters missing. I get latin istead, i encoded poedite files with utf8, ...