in reply to Unicode in one-liner
If you are on a system with a UTF8 locale (e.g. my default installation of Ubuntu), when you pass the -C flag to the interpreter, "the standard I/O handles and the default open() layer are UTF-8-fied" (you can specify encoding via an argument to -C if you need to; check with locale -a).
perl -nC -E 'print "\N{U+2022} $_"' /usr/share/dict/words
... • zooms • zoos • zucchini • zucchini's • zucchinis • zwieback • zwieback's • zygote • zygote's • zygotes • Ångström • éclair • éclair's • éclairs • éclat • éclat's • élan • élan's • émigré • émigré's • émigrés • épée • épée's • épées • étude • étude's • études
Hope this helps!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Unicode in one-liner
by morgon (Priest) on Dec 27, 2016 at 00:46 UTC | |
by Anonymous Monk on Dec 27, 2016 at 03:16 UTC | |
by Athanasius (Archbishop) on Dec 27, 2016 at 03:35 UTC | |
by Anonymous Monk on Dec 27, 2016 at 04:48 UTC | |
by morgon (Priest) on Dec 27, 2016 at 04:16 UTC | |
by Anonymous Monk on Dec 27, 2016 at 04:46 UTC | |
|
Re^2: Unicode in one-liner
by shawnhcorey (Friar) on Dec 29, 2016 at 13:06 UTC | |
by haukex (Archbishop) on Dec 29, 2016 at 13:31 UTC |