07-10-2008, 09:41 AM
[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.
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.