Problem with special chars in grid

QuestionsProblem with special chars in grid
Javier Lopez asked 9 years ago

Hello.
My grids works fine time ago…(MYSQL, using the php mysql extension) but i update my wamp and now the mysql is deprecated, i try to use Mysqli and put in my code:

$db_conf = array();
$db_conf["type"] = "mysqli";
$db_conf["server"] = "localhost"; // or you mysql ip
$db_conf["user"] = "kkkkk"; // username
$db_conf["password"] = "kkkkkk"; // password
$db_conf["database"] = "kkkkkk"; // database

My database is utf-8 (utf-8-spanish)

If a table contains numeric values the grid works fine, but, if my table contains special chars, like Ñ, á, é, … etc… when load te grid appear "Loading" and no show any data…

The line:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
is in my .html code.

Thanks… and sorry for my poor english.

4 Answers
Abu Ghufran answered 9 years ago

Please check chrome/firefox debug console (F12) for possible JS errors.
Send me screenshot or error text for clue. Also share the code for review (link at pastebin.com)

Abu Ghufran answered 9 years ago

I tested these characters in demos/loading/db-layer-mysqli.php and working fine.
Emailing you code.

Abu Ghufran answered 9 years ago

Sample code here:
http://pastebin.com/L1BJQy1y

Also emailed you.

Agustin answered 9 years ago

Same problem.

How did you fix it??

Your Answer

13 + 11 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?