User Activity

  • Posted a comment on ticket #1147 on TCPDF (DEPRECATED → use tc-lib-pdf)

    I've got the solution for this problem don't know is this the best approach or not but it work. public static function unichr($c, $unicode=true) { if(is_numeric($c)) { if (!$unicode) { return chr($c); } elseif ($c <= 0x7F) { // one byte return chr($c); } elseif ($c <= 0x7FF) { // two bytes return chr(0xC0 | $c >> 6).chr(0x80 | $c & 0x3F); } elseif ($c <= 0xFFFF) { // three bytes return chr(0xE0 | $c >> 12).chr(0x80 | $c >> 6 & 0x3F).chr(0x80 | $c & 0x3F); } elseif ($c <= 0x10FFFF) { // four bytes...

View All

Personal Data

Username:
zero0000
Joined:
2020-04-17 18:00:19

Projects

  • No projects to display.

Personal Tools