TeamsStatus icon indicating copy to clipboard operation
TeamsStatus copied to clipboard

unicode characters in USERNAME

Open piatkos opened this issue 3 years ago • 4 comments

Hi,

maybe it's not an issue, but I had a problem with configuration because I have polish letter in my username. Entering it to config file - breaks the script. If someone is looking for a solution - you can try to enter it in that way:

$UserName = "WojtekPi$([char]0x0105)tkowski" instead of $UserName = "WojtekPiątkowski"

Maybe adding that info to comment will help someone in future? :)

piatkos avatar Mar 02 '21 09:03 piatkos

Good one! Let me investigate if we can prevent this issue from happing later.

EBOOZ avatar Mar 06 '21 08:03 EBOOZ

I did not find any good way around this, so what I'm doing is to save the Settings.ps1 file with Windows 1252 encoding.

felipecrs avatar Dec 21 '21 18:12 felipecrs

I think I have the same issue, my username is my emailadres, so I think that's why I get the UNKNOWN status all the time.

Using the unicode as @piatkos did, meaning bart.weemaels$([char]0x0040)cegeka.be doesn't work either. Path to HA is ok, running the script seperately without failures in powershell as admin, .... getting lost here

Anyone ?

weemaba999 avatar Jan 26 '22 19:01 weemaba999

@weemaba999 the username you need is the username on your local system, there is always a 'local' user. You can see this when you type "echo %USERNAME% into your command prompt. My username for example is [email protected] but my local user is marti, which is autogenerated during the first logon.

To get the service running you need to execute the service with your local user, not with the service account. This doesn't work for me. With running the service under my own useraccount, it works great!

mhoogenbosch avatar Jun 13 '22 18:06 mhoogenbosch