Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-15299

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

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.2.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Windows 10, Apache/2.4.27 (Win64), PHP 5.6.31

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                arbsoft arbsoft [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: