Regex for uppercase Unicode does not match “Ó”?

前端 未结 1 1999
我寻月下人不归
我寻月下人不归 2021-01-12 04:44

It seems that it does not recognize the accented Ó as uppercase

#!/usr/bin/env perl
use strict;
use warnings;
use 5.14.0;
use utf8;
use feature \'unicode_str         


        
相关标签:
1条回答
  • 2021-01-12 05:06

    You're missing use open ':std', ':locale'; to properly encode your output.

    If that doesn't work, your file isn't encoded using UTF-8 even though you tell Perl it is.

    0 讨论(0)
提交回复
热议问题