Wrong interpretation of some letters from MYSQL
Wrong interpretation of some letters from MYSQL
Thepaky91
Posts: 4Questions: 2Answers: 0
Hello to everybody,
I have created a table that takes some data from MYSQL. I am using DataTable to customize it. The problem is that some letters aren't read in a correct way. In fact, I found "?" instead of some letters. If I create a table without using DataTable, this problem doesn't appear. How can I fix it?
thanks in advance
This discussion has been closed.
Answers
It may be a character encoding issue - some difference between the DB and the web page. It would be worth confirming that they match.
C
How can I do to match the character encoding between DB and webpage? This issue only appear using DataTable. If I create a normal table without this plugin, there are no problems.
Try adding:
immediately before your
Editor::inst(...)
call.I'm assuming you are using PHP...
Allan
Sorry, but I don't understand where I have to put it.
Below the code for database access:
```
Thanks in advance
I had assumed that you were using the PHP libraries for Editor, which is why my code didn't make any sense.
I would suggest you use the PHP mysql->set_charset() function since you are using mysqli directly.
Allan