I’m trying to store the following line in mysql:
$data = "After 30μs, what fraction of the charge will remain?"
If I display $data on HTML Page I get the exact text but if i store this in database then i get this data on output I get the following :
After 30Î?s, what fraction of the charge will remain?
I have set charset=utf-8 but even then i’m not able to access the proper data with all the symbols. Is there anything I’m missing ????
You need to set database connection encoding:
Or similar method, depending on your database library.