summaryrefslogtreecommitdiff
path: root/test/testps8.ps1
blob: 7bf72dbaa59b34f4b53658e0f60fc78725e7164a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# This script demonstrates how to use Unicode file names
# in a PowerShell script.
# This script is in UTF-8 encoding, with BOM.

$env:DOS2UNIX_DISPLAY_ENC = "utf8"

dos2unix -i uni_el_αρχείο.txt uni_zh_文件.txt

echo "test select-string:"

# The following is not working. Why?
dos2unix -i uni* | select-string -encoding utf8 -pattern αρχ