Difference in utf8 (greek) characters output in codeigniter, standard html vs form helper Difference in utf8 (greek) characters output in codeigniter, standard html vs form helper codeigniter codeigniter

Difference in utf8 (greek) characters output in codeigniter, standard html vs form helper


This is a general issue with the characters set. Please keep the character set encoding same at every place like in HTML files, CI config file and most important at the database. While creating a database, select UTF-8 or any other other which suits to your language (for most languages UTF-8 works). Or you can change it for individual tables also. Please make these changes and you will get the correct one for greek language. Thank you


Try to play with these three Text helper functions:

ascii_to_entities()

or

entities_to_ascii()

or

convert_accented_characters()

depends how you have saved it in your database

They are from CI's Text helper:

http://ellislab.com/codeigniter/user-guide/helpers/text_helper.html

and don't forget to load this helper too ;)