in reply to need help in printing German umlauts
A similar issue was discussed recently in unicode problem with Email::Valid; McA has good information and tips in Re: unicode problem with Email::Valid. The short version: use Encode;, and then decode your data as MIME-Header (and encode the same way it when you'd like to go the other way).
#!/usr/bin/perl use feature qw/say/; use warnings; use strict; use Encode; say decode('MIME-Header', "=?iso-8859-1?Q?=C3=BC =C3=B6 =C3=A4?=");
Output:
$ perl test.pl ü ö ä $
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: need help in printing German umlauts
by opensourcer (Monk) on Jul 08, 2014 at 17:52 UTC | |
by AppleFritter (Vicar) on Jul 08, 2014 at 18:16 UTC | |
by opensourcer (Monk) on Jul 08, 2014 at 18:27 UTC | |
by AppleFritter (Vicar) on Jul 08, 2014 at 18:42 UTC | |
by Anonymous Monk on Jul 08, 2014 at 19:48 UTC |