A suggestion concerning special chars (eg. umlaut) - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Development Area (/forum-1.html) +--- Forum: Suggestions (/forum-2.html) +--- Thread: A suggestion concerning special chars (eg. umlaut) (/thread-2254.html) |
A suggestion concerning special chars (eg. umlaut) - joximu - 01-28-2008 11:19 AM Hi there is an open tickets dealing with characters outside of ascii - #915. It turns out hat most of the texts which are put in the forms are converted to html code which checking the input itself. Raphael did some improvements to be able to skip the coversion to html - but it really looks like almost all text fields may containe umlauts/special characters. As long as the texts are only used for HTML output the conversion is ok, but in emails and javascripts there is no use for ä for example... So: my suggestion: always skip the conversion to html input-checks.php: function clean_input($input, $htmlencode = false) so the special characters are put directly (as-is) into the database. This works good in my new installation... all mails are ok, names, texts Another thing: pma uses only utf-8 as character set. It seems that the database with ispcp still uses latin1(_swedish) for various texts - even if the db, tables and fileds are utf-8 "collated".... With an @$sql->Execute("SET NAMES 'utf8'"); just after the @$sql->connect in sql.php we force every mysql connection to use utf8 - and then we can see the right umlaut we put in... (for updaters: the language file has to be uploaded again, and the email tpl texts... - and of cours all the names of the customers... - but it should be able to handle this...) Your comments...??? /Joximu RE: A suggestion concerning special chars (eg. umlaut) - BioALIEN - 01-28-2008 12:01 PM +1 on converting the DB to utf-8 and keep it in line with phpmyadmin. RE: A suggestion concerning special chars (eg. umlaut) - BeNe - 01-28-2008 06:37 PM Yes, there are many still some wrong characters in ispCP / e-Mails and so on. So we should try it as you said. Quote:(for updaters: the language file has to be uploaded again, and the email tpl texts... - and of cours all the names of the customers... - but it should be able to handle this...)Yes it is! Greez BeNe RE: A suggestion concerning special chars (eg. umlaut) - joximu - 02-07-2008 07:09 PM ok guys just uploaded one part - the utf8 patch. A new config variable (for the one who don't want to use utf8 - or who did not realize the feature :-) DATABASE_UTF8 if set to yes, the connection to the database uses UTF8 charset. This is the base for some charset based tickets - I think its needed since its multilangual... /J |