A stringful of 16-bit characters : Unicode « String « Perl






A stringful of 16-bit characters

    


use Unicode::String;

my $string = "This is a test\n";
my $u = Unicode::String->new($string);

   
    
    
    
  








Related examples in the same category

1.Output string as UCS2
2.Output string as utf8
3.utf8 Composite Character Classes
4.utf8 encode
5.utf8 encoding
6.binmode STDOUT,":utf8";