[eluser]Vik[/eluser]
Update:
I modified the php routine that receives the Ajax call, so that it sent the string back to my Javascript code in the Ajax response - and the string arrived correctly, looking just as it did when it left. I believe this means that nothing went wrong in the transmission of the string via Ajax to my CI app.
So the anomaly seems to be something in how the string is stored to mySQL. When it gets stored to mySQL, it gets stored as:
Quote:Academia-Gate ??" the Nanny State & The Professors: My Brief Email Exchange With The Co-Chair of the “Cry Wolf” Project
In other words, 2 of the anomalies are corrected, but the first one - the — in place of the dash near the beginning - is stored to mySQL as ??". When I retrieve the string from mySQL, it shows ??" instead of the original dash.
In my database config file, I have:
Code:
$db['default']['char_set'] = "utf8";
$db['default']['dbcollat'] = "utf8_general_ci";
...and in config.php I have:
Code:
$config['charset'] = "UTF-8";
How can I ensure that the string is stored correctly to mySQL?