We have some ASCII and Unicode characters which we want users to use when they are imputing text into a Form’s text and textarea fields.
For example,
$SpecialCharacters = array(
    'single quotes'=>''',
    'double quotes'=>'"',
    'copyright'=>'©',
    'registered'=>'®',
    'trademark'=>'™',
);
We are using jQuery UI Drag and Drop to move the selected non-standard character from the toolbar to the input field. That works fine.
However, when the data is saved to the MySQL database (using PHP) and returned, the non-standard characters return in a malformed encoding.
- User inputs: bill.onthebeach™
- Returned page displays: bill.onthebeachâ¢
Everything is UTF-8 encoded.
So I'm thinking this should solve the problem:
- User inputs: bill.onthebeach™
- Returned page displays: bill.onthebeach™
The question is, Is there a jQuery function or plug-in that will convert non-standard characters to their encoded forms?
 ™ => ™
Or, Does the problem lie elsewhere? If so, what’s the solution?
 
     
     
    