Welcome Guest, Not a member yet? Register   Sign In
Correct encoding
#1

[eluser]Dauntless[/eluser]
Hi,

Actually don't think that this is CI-related, but I'm asking anyway:

In a previous site I wrote with CI, there were a lot of (fe) french characters (like é, à, ç, etc) and each time those characters could come up, I printed them like this:

Code:
htmlentities($item->name, ENT_QUOTES, 'UTF-8')

Now, this is a really annoying way; It's a lot of extra typing and easy to forget somewhere.

Is there a better way to do this, once and for all ?

I know that it also has to do with the way the data is stored in the DB, but when I just try
Code:
print 'àçé'
, the same icons (question-mark-icons) appear.

All help is appreciated!

Kind regards,
Dauntless


Messages In This Thread
Correct encoding - by El Forum - 09-25-2008, 06:52 AM
Correct encoding - by El Forum - 09-25-2008, 08:42 AM
Correct encoding - by El Forum - 09-25-2008, 08:58 AM
Correct encoding - by El Forum - 09-25-2008, 11:11 AM
Correct encoding - by El Forum - 09-25-2008, 11:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB