Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7548695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:45:51+00:00 2026-05-30T09:45:51+00:00

Why does this print a U and not a Ü ? #!/usr/bin/env perl use

  • 0

Why does this print a U and not a Ü?

#!/usr/bin/env perl
use warnings;
use 5.014;
use utf8;
binmode STDOUT, ':utf8';
use charnames qw(:full);

my $string = "\N{LATIN CAPITAL LETTER U}\N{COMBINING DIAERESIS}";

while ( $string =~ /(\X)/g ) {
        say $1;
}

# Output: U
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T09:45:53+00:00Added an answer on May 30, 2026 at 9:45 am

    Your code is correct.

    You really do need to play these things by the numbers; don’t trust what a “terminal” displays. Pipe it through the uniquote program, probably with -x or -v, and see what it is really doing.

    Eyes deceive, and programs are even worse. Your terminal program is buggy, so is lying to you. Normalization shouldn’t matter.

    $ perl -CS -Mutf8 -MUnicode::Normalize -E 'say "crème brûlée"'
    crème brûlée
    $ perl -CS -Mutf8 -MUnicode::Normalize -E 'say "crème brûlée"' | uniquote -x
    cr\x{E8}me br\x{FB}l\x{E9}e
    $ perl -CS -Mutf8 -MUnicode::Normalize -E 'say NFD "crème brûlée"' 
    crème brûlée
    $ perl -CS -Mutf8 -MUnicode::Normalize -E 'say NFD "crème brûlée"' | uniquote -x
    cre\x{300}me bru\x{302}le\x{301}e
    
    $ perl -CS -Mutf8 -MUnicode::Normalize -E 'say NFC scalar reverse NFD "crème brûlée"' 
    éel̂urb em̀erc
    $ perl -CS -Mutf8 -MUnicode::Normalize -E 'say NFC scalar reverse NFD "crème brûlée")' | uniquote -x
    \x{E9}el\x{302}urb em\x{300}erc
    $ perl -CS -Mutf8 -MUnicode::Normalize -E 'say scalar reverse NFD "crème brûlée"'
    éel̂urb em̀erc
    $ perl -CS -Mutf8 -MUnicode::Normalize -E 'say scalar reverse NFD "crème brûlée"' | uniquote -x
    e\x{301}el\x{302}urb em\x{300}erc
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Why does this code not print an exception stack trace? public class Playground {
in the html file: <!--#exec cgi=/cgi-bin/test.pl--> the perl script: #!/usr/bin/perl print Content-Type: text/html\n\n; print
The code #!/usr/bin/env python import MySQLdb print Content-Type: text/html print print <html><head><title>Books</title></head> print <body>
I've got a ruby script myscript.sh like this #!/usr/bin/env ruby puts 'do some ruby
Starting with this from Corey Goldberg: #!/usr/bin/env python import json import pprint import urllib2
why does this work: def function1(): a = 10 def function2(): print a function2()
Why does this lambda expression not compile? Action a = () => throw new
I am new to Python and I have written this simple script: #!/usr/bin/python3 import
I have the following Python code: #!/usr/bin/env python2.6 class container(object): name = 'container' configuration
#!/usr/bin/python #this looks for words in dictionary that begin with 'in' and the suffix

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.