Title: apostrophe in PHP code posting
Last modified: August 19, 2016

---

# apostrophe in PHP code posting

 *  [crankberry](https://wordpress.org/support/users/crankberry/)
 * (@crankberry)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/apostrophe-in-php-code-posting/)
 * My blog is about web development so I’m sharing a lot of php codes that I write,
   but the apostrophe is changing on me as I publish the article.
 * Example article here:
 * [http://www.crankberryblog.com/2009/php-image-verification-aka-captcha-basic](http://www.crankberryblog.com/2009/php-image-verification-aka-captcha-basic)
 * So I do my code in notepad in which I use ‘ and it copies perfectly fine into
   the writing box but it turns out ’ (I’m not sure if they’ll show up), which if
   you copy and paste the final code back into word it won’t work.
 * I’m always posting my code in HTML edit format and the charset is the default
   one by wordpress UTF-8. Anybody have any ideas what I made need to edit?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [crankberry](https://wordpress.org/support/users/crankberry/)
 * (@crankberry)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/apostrophe-in-php-code-posting/#post-1265846)
 * actually I pinned down to the plugin I’m using to highlight the code… its the
   Source Code syntax highlighting plugin: [http://www.deanlee.cn/wordpress/code_highlighter_plugin_for_wordpress/](http://www.deanlee.cn/wordpress/code_highlighter_plugin_for_wordpress/)
 * it mentions that
 * “In the OUTPUT there is a minor difference in that we use ‘'’ instead
    * of PHP’s‘'’
   for a single quote: this provides compatibility with”
 * but I tinkered with the code and nothing happened..
 * should this thread be moved elsewhere?
 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/apostrophe-in-php-code-posting/#post-1265856)
 * WordPress turns single and double quotes into “fancy” quotes that will not work
   in code. Here are the plugins I use for code and to de-fancy quotes:
 * [http://wordpress.org/extend/plugins/wp-syntax/](http://wordpress.org/extend/plugins/wp-syntax/)
   
   [http://www.semiologic.com/software/unfancy-quote/](http://www.semiologic.com/software/unfancy-quote/)
 *  Thread Starter [crankberry](https://wordpress.org/support/users/crankberry/)
 * (@crankberry)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/apostrophe-in-php-code-posting/#post-1265861)
 * installed and tested… excellent plugin… thanks

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘apostrophe in PHP code posting’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [crankberry](https://wordpress.org/support/users/crankberry/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/apostrophe-in-php-code-posting/#post-1265861)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
