![]() |
Unicode support - Printable Version +- LetoDMS Community Forum (https://community.letodms.com) +-- Forum: Customization (https://community.letodms.com/forumdisplay.php?fid=5) +--- Forum: Addons/Mods (https://community.letodms.com/forumdisplay.php?fid=14) +--- Thread: Unicode support (/showthread.php?tid=60) |
Unicode support - dzingis - 04-24-2010 I'm using some special characters in dokument names, keyword etc. They are well represented when are entered in form, but after they are the stored in database they become messed. First thing that should be done is to add red line in the function htmlStartPage in inc.ClassUI.php Quote: function htmlStartPage($title="", $bodyClass="") { Second thing I do is to convert mydms database to utf8 character set using below attached php script. Script should be edited according to db setup (host, username, pass) Quote:<?php I don't know if that should stay in bugs section or this should go somewhere else, but I hope that administrator will ![]() RE: Unicode support - calcumat - 12-10-2010 For some specific languages with special characters in "day of week"-names you have to change inc.Calendar.php - change line: $dayNames[] = substr($dn,0,2); to: $dayNames[] = mb_substr($dn,0,2,"utf-8"); This requires mbstring library (Multibyte support) loaded in PHP. Patch for LetoDMS 2.0.2 is in attachment. RE: Unicode support - calcumat - 02-04-2011 One more modification to correct work with UTF-8 - edit file out/out.ViewFolder.php . Locate this line (2x - lines 100 and 120): PHP Code: if (strlen($comment) > 50) $comment = substr($comment, 0, 47) . "..."; change to: PHP Code: if (strlen($comment) > 50) $comment = mb_substr($comment, 0, 47, "utf-8") . "..."; RE: Unicode support - usain - 11-29-2013 viewed name UTF-8 unicode-ci Projects idea |