• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Storing accented characters in mysql db

#9
[eluser]Desireco[/eluser]
OK now I kind of figured it all out. Here is what you need to do when you have issue like this.

Page needs to have something like this:
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type" />

then in your code before saving data:
$data['category']=htmlentities($data['category'], ENT_NOQUOTES, "UTF-8",false);

and that is it. One of the issues I had is that I had here different encoding then my page and that is why these things didn't work. It is actually very simple.

Thanks for suggestions.


Messages In This Thread
Storing accented characters in mysql db - by El Forum - 07-09-2008, 01:43 PM
Storing accented characters in mysql db - by El Forum - 07-10-2008, 01:10 AM
Storing accented characters in mysql db - by El Forum - 07-10-2008, 03:20 AM
Storing accented characters in mysql db - by El Forum - 07-10-2008, 07:12 AM
Storing accented characters in mysql db - by El Forum - 07-10-2008, 08:24 AM
Storing accented characters in mysql db - by El Forum - 07-10-2008, 08:34 AM
Storing accented characters in mysql db - by El Forum - 07-10-2008, 08:37 AM
Storing accented characters in mysql db - by El Forum - 07-10-2008, 09:32 AM
Storing accented characters in mysql db - by El Forum - 07-10-2008, 09:41 AM
Storing accented characters in mysql db - by El Forum - 07-11-2008, 03:14 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.