Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

You've already received feedback regarding our inability to provide any direct help when you don't provide any code or data. Here's some indirect help.

The core module Unicode::UCD can provide a lot of information about Unicode characters. Here's a brief example:

$ perl -E 'use Unicode::UCD "charinfo"; my @cps = qw{U+DFA8 0xDFA8 0x1 +C9140 0xE6BAAA 0xFFFFFFFFFFFFFFFF}; for (@cps) { say "$_: ", defined +charinfo($_) ? "Assigned" : "Unassigned" }' U+DFA8: Assigned 0xDFA8: Assigned 0x1C9140: Unassigned 0xE6BAAA: Unassigned Hexadecimal number > 0xffffffff non-portable at /Users/ken/perl5/perlb +rew/perls/perl-5.28.0t/lib/5.28.0/Unicode/UCD.pm line 355. 0xFFFFFFFFFFFFFFFF: Unassigned

The $codepoint argument to charinfo($codepoint) can be in many formats. I added 0xDFA8 to your posted U+DFA8 as a minimal example. This $codepoint argument is used in a similar fashion by many of the other functions provided by Unicode::UCD.

Also be aware that different versions of Perl support different versions of Unicode.

Also note that Unicode is currently at version 11.0 (see "Announcing The Unicode® Standard, Version 11.0") which isn't supported by any version of Perl as yet. Unicode characters that you're investigating could be one of the 684 new characters in this version.

Just out of interest, I ran the above one-liner using 5.26 - the results were the same (except, of course, for 5.26 appearing in the message instead of 5.28).

$ perl -E 'use Unicode::UCD "charinfo"; my @cps = qw{U+DFA8 0xDFA8 0x1 +C9140 0xE6BAAA 0xFFFFFFFFFFFFFFFF}; for (@cps) { say "$_: ", defined +charinfo($_) ? "Assigned" : "Unassigned" }' U+DFA8: Assigned 0xDFA8: Assigned 0x1C9140: Unassigned 0xE6BAAA: Unassigned Hexadecimal number > 0xffffffff non-portable at /Users/ken/perl5/perlb +rew/perls/perl-5.26.0t/lib/5.26.0/Unicode/UCD.pm line 365. 0xFFFFFFFFFFFFFFFF: Unassigned

— Ken


In reply to Re: Fatal code point 0xFFFFFFFFFFFFFFFF by kcott
in thread Fatal code point 0xFFFFFFFFFFFFFFFF by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others having an uproarious good time at the Monastery: (3)
    As of 2020-02-29 02:02 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      What numbers are you going to focus on primarily in 2020?










      Results (128 votes). Check out past polls.

      Notices?