• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Form helper displays unicode characters as &#xxx;

Hi All!

My problem is shown on the first screenshot.

A view containing the same form in 2 ways: using form helper and using standard html tags.

The issue is that i dont get the unicode (greek) characters shown up.Instead i am getting them in the format &#xxx;..

My CI config files are configured for utf8
HTML response headers indicate uf8
My Db/tables/fields are all utf8

What am i missing guys?


Are HTML Entities being escaped twice? Do you have the right page encoding set?

I was not escaping anything..

I checked that UTF-8 was in *ALL* places (db,tables,fields,headers) and then i exported and imported the data again....


The form helper should only escape HTML values when you use set_value, and it definitely only escapes them once.

What does the page source look like? &#xxx; or &#xxx;?

What browser are you using?

Are you outputting a header that sets encoding? If so, where, and what does it look like? If not, try putting this at the top of your view (before the doctype):
<?php header('Content-type: text/html; charset=utf-8'); ?>

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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