Help for this page

Select Code to Download


  1. or download this
    $ ./2.create.bash with_utf8.pl
    The shebang is specifying bash
    Using bash 4.4.19(1)-release
    ...
    without_utf8.pl: text/plain; charset=utf-8
    with_utf8.pl:    text/plain; charset=utf-8
    $
    
  2. or download this
    $  perl -pe 's/^(?=.*utf8)/#/' 1.pl | tee 1.without_utf8.pl
    #!/usr/bin/perl -w
    use 5.011;
    ...
    $string = 'alleß';
    Dump($string);
    $
    
  3. or download this
    $ ./1.pl
    string is G�del
    SV = PV(0x556af89dcda0) at 0x556af8a06fa0
    ...
      LEN = 10
      COW_REFCNT = 1
    $
    
  4. or download this
    $ ./1.without_utf8.pl 
    string is Gödel
    SV = PV(0x5584c04dbda0) at 0x5584c0505a88
    ...
      LEN = 10
      COW_REFCNT = 1
    $
    
  5. or download this
    $ iconv -f UTF-8 -t us-ascii 1.pl -o 1.us-ascii.pl
    iconv: illegal input sequence at position 72
    $