Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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 written a plugin that, even if it just passes the content through, stops wordpress from handling many of these characters properly. It shows particularly on foreign language web sites like a German one where special characters are handled just fine until my plugin is activated. Why is this so?

share|improve this question
1  
Really no way to tell without, you know, seeing what your plugin actually does... Likely you break some filters or something. :) –  Rarst Nov 18 '10 at 14:48
    
Yeah, you should link your plugin so it actually can be analyized. Otherwise you're asking in the Chrystal Bowl. –  hakre Nov 18 '10 at 18:12

1 Answer 1

Let's give this a guess out of the blue: Check the encoding of your plugin file. It should be ASCII, also named US-ASCII or ascii-7bit. This ensures that your plugin is most compatible to wordpress installations out there.

This information is probably useful for you to find out about the actual encoding of your plugins files (you need to encode all as ascii 7 bit if you have more then one): How Can I Determine the Encoding of a File?.

To change the file encoding, this depends on the editor you are using. As I don't know which one, I can not offer any more information about this then, that editors tend to have an option to specify the file encoding in the save-as dialog -or- somewhere in the menus while you have opened the file in question.

If you have characters in your file the get broken when you save your file in another encoding (make a backup first!), you might probably want to encode them as UTF-8. That done, the file is still compatible with most (but not all) sites. And this might prevent you from loosing characters in your file(s).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.