Last active
August 29, 2015 14:06
-
-
Save bielawb/87a7091e7b6eaf28334f to your computer and use it in GitHub Desktop.
Just a test code for ConvertFrom-String used with Japanese (well.. or so I think) ;)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Template = @' | |
{Name*:霧嶋 董香} | |
{City:Redmond}, {State:WA} | |
{Name*:Łukasz Ćwikalski} | |
{City:ワルシャワ}, {State:PL} | |
'@ | |
$Data = @' | |
霧嶋 董香 | |
Redmond, WA | |
James Bond | |
Redmond, WA | |
Łukasz Ćwikalski | |
ワルシャワ, PL | |
西尾 錦 | |
ブロツラフ, PL | |
'@ | |
$Data | ConvertFrom-String -TemplateContent $Template | Format-List | |
<# Result: | |
ExtentText : 霧嶋 董香 | |
Redmond, WA | |
Name : 霧嶋 董香 | |
City : Redmond | |
State : WA | |
ExtentText : James Bond | |
Redmond, WA | |
Name : James Bond | |
City : Redmond | |
State : WA | |
ExtentText : Łukasz Ćwikalski | |
ワルシャワ, PL | |
Name : Łukasz Ćwikalski | |
City : ワルシャワ | |
State : PL | |
ExtentText : 西尾 錦 | |
ブロツラフ, PL | |
Name : 西尾 錦 | |
City : ブロツラフ | |
State : PL | |
#> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment