Title: My Plugin Changes Encoding. Why?
Last modified: August 20, 2016

---

# My Plugin Changes Encoding. Why?

 *  Resolved [TIves](https://wordpress.org/support/users/tives/)
 * (@tives)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/my-plugin-changes-encoding-why/)
 * Hello all,
 * Would love a little help here. Simply turning on my plugin is changing the sites
   encoding such that a dash “-” becomes “â€””. This happen in both my tinyMCE editor(
   including both Visual and HTML views) and in the posts when seen from the site.
 * However, immediately upon Deactivating my plugin, it is fixed everywhere.
 * I have no idea as to why. I reside in the US and develop using standard tools
   such as NetBeans.
 * in the Plugin Header I have
    /* … Text Domain: my_plugin_name */
 * In troubleshooting, I have tried commenting out all of the add_actions() and 
   just about every section and function of the two files, and still the issue exists.
 * I have no idea where to look and I know relatively little about encoding in general
   and I am quite new to developing plugins.
 * Any help you may be able to provide would be greatly appreciated.
 * Thanks!
 * Trip

Viewing 1 replies (of 1 total)

 *  Thread Starter [TIves](https://wordpress.org/support/users/tives/)
 * (@tives)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/my-plugin-changes-encoding-why/#post-3535169)
 * UPDATE: RESOLVED
 * OK, I found that it was caused by having a full HTML header with a javascript
   in the doc.
 * I was trying to take a quick and dirty approach with the JS in that this is a
   simple plugin. But, I guess I’ll have to move the JS to an external file.
 * Thanks!!
 * Trip

Viewing 1 replies (of 1 total)

The topic ‘My Plugin Changes Encoding. Why?’ is closed to new replies.

## Tags

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

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 1 participant
 * Last reply from: [TIves](https://wordpress.org/support/users/tives/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/my-plugin-changes-encoding-why/#post-3535169)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
