I run your code and Chinese characters do not match.
Then I check the html, it does not contain these characters. Therefore, this may be the cause of the discrepancy. Then I tried to use another character (่), and also remove the encoding function. those. my $str_chinese = "่";
Run the code with this change and the character will be matched.
Rahulj
source share