Umwandeln von Latin1 in Unicode in der Shell

Da ich kein Shell-Script gefunden habe hier eine kleine Perl-Lösung:

#!/usr/bin/perl

use strict;
use Unicode::String;
print Unicode::String::latin1($ARGV[0])->utf8();

Ausführen mit:
perl iso2uni.pl Ümläüte

  • Both comments and trackbacks are currently closed.
  • Trackback URI: http://www.frankl.info/wordpress/know-how/perl/umwandeln-von-latin1-in-unicode-in-der-shell/trackback
  • Comments RSS 2.0

Comments are closed.