Help for this page

Select Code to Download


  1. or download this
    This command in bash works fine (Perl 5.30 shipped with Cygwin):
    
    git-md-toc -ut "some-text-in-russian" -Tutf8 "utf8-cyrillic.md"
    
    But it fails in DOS sessions -- the title is being added in wrong enco
    +ding. To resolve the issue I have to use one more option (standalone 
    +StrawberryPerl 5.30):
    
  2. or download this
    #!/usr/bin/perl --
    use strict;
    ...
    # copy from html below cause perlmonks doesnt utf, so browser converts
    + html entities 
        'кебаб',
        ;
    
  3. or download this
    [
      "\x{43A}\x{435}\x{431}\x{430}\x{431}",
      "\x{43A}\x{435}\x{431}\x{430}\x{431}",
    ]