I try to
$arr = "one", "two"
$test = [String]::Join(@"\u00A0", $arr)
and it gives me
Unrecognized token in source text.
Is it because i have to specify it in utf-8 as 0xC2 0xA0?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Remove the
@char – it is not here-string.Added after S.Mark’s answer:
I’ll add because S.Mark already posted answer, that can be accepted,
that here-strings begin with
@. Try to google them. And – it’s somewhat different to C#. You don’t escape with\, but with backtick. So probably the string should be something like “`u00A0”, but I’m not sure…Solution
After some hanging around stack overflow, I found Shay’s answer that probably is what you wanted.
or maybe
Shay’s answer how to escape unicode character.