Dear Stackoverflow Community Members,
We are developing a web application using the Zend Framework, and we are encountering some coding problems that we hope can help us solve. The situation looks something like this: in MySQL there are certain database tables that should be displayed as html. Because the site was developed using Spanish, the database contains some characters, such as "á", or "-". Our internal policy is to set all encodings as UTF-8, including all databases and tables. The problem is that when we get the contents from the database, some characters are displayed as question marks.
We have no ideas. This is all that we have already tried and double checked: 1. The SQL file from which we load all the data is correctly encoded by UTF-8. 2. SQL is loaded via phpmyadmin (which is configured as UTF-8), and the resulting tables are displayed correctly. 3. The netbeans environment used for encoding is also installed as UTF-8.
It is strange that all content hardcoded either as php or html is displayed correctly. Only values that are retrieved from the database have problems.
Any ideas?
Many thanks.
source
share