Page 1 of 1

Strange characters displaying when fetched from db

Posted: Mon Apr 19, 2010 4:27 pm
by klevis miho
When I fetch some text from the database, it displays me strange characters.
I know that I have to use utf-8 encoding.
I added:
<meta http-equiv="content-type" content="text/html; charset=utf-8" />

but this fixes only the test that doesn't come from the db.

Will accept any help

Re: Strange characters displaying when fetched from db

Posted: Mon Apr 19, 2010 5:41 pm
by requinix
Is the stuff in the database UTF-8 too?

Re: Strange characters displaying when fetched from db

Posted: Tue Apr 20, 2010 1:32 am
by klevis miho
I did also in the database utf-8 general. I did it for all the table, and for just the column. It didn't worked, unless I have done it wrong. I did a workaround, replacing the strange characters with &euml;, but I don't like this approach.