Unable to create new file named with emoji

Nextcloud version (eg, 19.0.0):
Operating system and version (eg, Ubuntu 18.04):
Apache or nginx version (eg, Apache 2.4.29):
PHP version (eg, 7.4):

The issue you are facing:

I have enabled UTF8 support according to the instructions in the documentation, but I still unable to create new file named with emoji. (I can rename file with emoji.)

Is this the first time you’ve seen this error? : Yes

Steps to replicate it:

  1. create a text document file with emoji
  2. The system says it cannot be created

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php                                                                
$CONFIG = array (                                                    
  'instanceid' => 'oci1yi***t',                                    
  'passwordsalt' => 'FiXV71iZEC******',                
  'secret' => 'z4w34LK+u+p1SS+4F4tX9lQVBO*****',    
  'trusted_domains' =>                                               
  array (                                                            
    0 => 'cloud.guozijin.com',                                       
  ),                                                                 
  'datadirectory' => '/var/www/html/nextcloud/data',                 
  'dbtype' => 'mysql',                                               
  'version' => '19.0.0.12',                                          
  'overwrite.cli.url' => 'https://cloud.gu****',               
  'dbname' => 'nextcloud',                                           
  'dbhost' => 'localhost',                                           
  'dbport' => '',                                                    
  'dbtableprefix' => 'oc_',                                          
  'dbuser' => 'nextcloud',                                           
  'dbpassword' => 'JayGuo030921#my&128',                             
  'installed' => true,                                               
  'maintenance' => false,                                            
  'mysql.utf8mb4' => true,                                           
);

Besides, I unable to create new folder named with emoji and also unable to rename folder with emoji