PHP Classes

UTF

Recommend this page to a friend!

      phpMyDataGrid - AJAX Enabled Datagrid  >  All threads  >  UTF  >  (Un) Subscribe thread alerts  
Subject:UTF
Summary:This Class have some problems
Messages:6
Author:amir
Date:2006-10-14 12:01:18
Update:2008-01-03 00:04:51
 

  1. UTF   Reply   Report abuse  
Picture of amir amir - 2006-10-14 12:01:18
Hello
This class have some problems:
1-This can't work with Unicode
2-When you bind unicode databases , it hanged
3-Weak for search,and binding

  2. Re: UTF   Reply   Report abuse  
Picture of amir amir - 2006-10-15 10:59:09 - In reply to message 1 from amir
is there anyone to resolve this problem??
this class has problem with unicode and unicode databases
do you test it ?!

  3. Re: UTF   Reply   Report abuse  
Picture of amir amir - 2006-10-15 11:02:18 - In reply to message 1 from amir
is there anyone to resolve this problem??
this class has problem with unicode and unicode databases
do you test it ?!

  4. Re: UTF   Reply   Report abuse  
Picture of daniel daniel - 2007-04-05 14:12:35 - In reply to message 1 from amir
Hello amir,
this class is a very goog work from Gustavo Arcila, but you will see some bugs or some thing left. This is one of the thing tha dont work very well but i think with the help from every body here we can update this and other things with Gustavo.

good work, well done :)
Regards, Lince

  5. Re: UTF   Reply   Report abuse  
Picture of mugnier mugnier - 2008-01-03 00:04:52 - In reply to message 4 from daniel
you must replace function putAcutes($strText)
by htmlentities($strText,ENT_QUOTES,$this->charset)
and define var $charset = 'UTF-8';
and messages by htmlentities($this->message[$msg],ENT_QUOTES,'ISO-8859-15')
It work for me in french language

very good work, but
- language code must be separated from class code (easy to modify)
- form edit/create will be better into popup window (jscript to modify)

  6. Re: UTF   Reply   Report abuse  
Picture of xufang xufang - 2016-05-07 03:11:41 - In reply to message 5 from mugnier
after this :

$this->SQLerror("mysql_select_db($strDatabase, $this->connectionHandler)", mysql_error());

add:

mysql_query("SET NAMES 'utf8'");
mysql_query("SET CHARACTER SET 'utf8'");
mysql_query("SET COLLATION_CONNECTION = 'utf8_general_ci'");