Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-15299

Characters with more than 3 bytes in its default UTF-8

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • 3.2.1
    • None
    • Windows 10, Apache/2.4.27 (Win64), PHP 5.6.31

      Hi, 

      If I try add a emoji on Cell Phone or Desktop phpbb trown an error.

      I reproduced this bug on phpbb.com right now.

      It affects almost all text fields. 

      My workaround was add this line

      $query = preg_replace('/[\x{10000}-\x{10FFFF}]/u', '?', $query);

      before 

      $this->query_result = ($cache && $cache_ttl) ? $cache->sql_load($query) : false;

      on \phpbb\db\driver\mysql.php

      Please, let me know if you will fix it.

      Thank you in advance.

      Alessandro

            Marc Marc
            arbsoft Jonas Machado
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: