[Identity: I am getting a little confused regarding with whom I'm conversing: ewcarroll or Sainathuni. If these are two separate people, perhaps working on the same project, please advise. If these are two usernames registered by the same person, please read "Site Rules Governing User Accounts" and action appropriately. Thankyou.]

"This indeed looks like Unicode/UTF8 issue, appreciate any help providing solution."

My two previous posts in this thread were purely to help a new user. I have no knowledge of Vertica Analytic Database, vertica-client or UL_VERTICA.pm; furthermore, I have no access to CentOS or Fedora Linux systems. I can provide the following, very general, potential solution (on a Cygwin system which was fully updated yesterday).

$ uname -a CYGWIN_NT-10.0-19045 titan 3.4.7-1.x86_64 2023-06-16 14:04 UTC x86_64 +Cygwin

I created the module Dummy_Vertica intended to emulate what I think might be in UL_VERTICA:

$ cat /home/ken/tmp/pm_11153782_unicode/Dummy_Vertica.pm package Dummy_Vertica; use v5.36; use utf8; sub test_wide_character_print { say 'SLAP example:'; print "SLAPØ\n"; say 'IMP example:'; print "\N{IMP}\n"; return; } 1;

[IMP (U+01F47F) was chosen completely arbitrarily as a wide character. See the Unicode® PDF Code Chart "Miscellaneous Symbols and Pictographs" for further details.]

I wrote the following script, test_1.pl, to emulate the type of thing you're seeing:

$ cat /home/ken/tmp/pm_11153782_unicode/test_1.pl #!/usr/bin/env perl use v5.36; BEGIN { say "Perl version: $^V"; } use lib '/home/ken/tmp/pm_11153782_unicode'; use Dummy_Vertica; Dummy_Vertica::test_wide_character_print();

Output:

ken@titan ~/tmp/pm_11153782_unicode
$ ./test_1.pl
Perl version: v5.36.0
SLAP example:
SLAP▒
IMP example:
Wide character in print at /home/ken/tmp/pm_11153782_unicode/Dummy_Vertica.pm line 10.
👿

As you can see, there's two types of problems: instead of Ø; and, the "Wide character ..." message. Both can be resolved by using the open pragma. Here's test_2.pl which is identical to test_1.pl except for the addition of one "use open ..." statement:

$ cat /home/ken/tmp/pm_11153782_unicode/test_2.pl #!/usr/bin/env perl use v5.36; use open OUT => qw{:encoding(UTF-8) :std}; BEGIN { say "Perl version: $^V"; } use lib '/home/ken/tmp/pm_11153782_unicode'; use Dummy_Vertica; Dummy_Vertica::test_wide_character_print();

Output:

ken@titan ~/tmp/pm_11153782_unicode
$ ./test_2.pl
Perl version: v5.36.0
SLAP example:
SLAPØ
IMP example:
👿

— Ken


In reply to Re^4: Unrecognized ICU conversion error [after your updates] by kcott
in thread Unrecognized ICU conversion error by Sainathuni

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, details, 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, summary, 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.