(c) symbol in a form

Ask your Windows PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
User avatar
jsira2003@yahoo.com
Posts: 112
Joined: Fri Apr 07, 2017 9:47 am

(c) symbol in a form

Post by jsira2003@yahoo.com » Sun May 12, 2019 2:15 pm

In the editor it looks right (c) year with a circle around the year

in the executable it looks like this
^
A (c) the c in a circle. Why am i getting the A with the caret above it? The caret is immediately above the A

How do i correct this?

thanks,
John

User avatar
jsira2003@yahoo.com
Posts: 112
Joined: Fri Apr 07, 2017 9:47 am

Re: (c) symbol in a form

Post by jsira2003@yahoo.com » Sun May 12, 2019 2:21 pm

I wanted to say a circle around the c not the year.

John

User avatar
jvierra
Posts: 13681
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: (c) symbol in a form

Post by jvierra » Sun May 12, 2019 2:42 pm

What editor are you asking about? There is not enough information to understand what you are asking.

The copyright symbol is only available in some character sets. In some text the symbol is type as (c). In others it looks like this: ©

User avatar
jsira2003@yahoo.com
Posts: 112
Joined: Fri Apr 07, 2017 9:47 am

Re: (c) symbol in a form

Post by jsira2003@yahoo.com » Sun May 12, 2019 4:36 pm

the symbol displays correctly on the form in the powershell studio editor. After it is compiled you get the caret A combo. I just recompiled a package with the newest ps studio and this is now occurring on all my packages. It does not make sense to show up properly in ps studio but not when the .exe runs.

thanks,
John

User avatar
jvierra
Posts: 13681
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: (c) symbol in a form

Post by jvierra » Sun May 12, 2019 5:02 pm

The editor font is not the same font as you see in PowerShell. PowerShell can use a number of fixed fonts and it may display in a different character set. The "A" with a "hat" sounds like you are using a European character set in PowerShell.

Without accurate information it is not possible to say what is causing this.

User avatar
Alexander Riedel
Posts: 6999
Joined: Tue May 29, 2007 4:43 pm

Re: (c) symbol in a form

Post by Alexander Riedel » Sun May 12, 2019 10:27 pm

You probably have to change your encoding to UTF-16 to make that work consistently.
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
jvierra
Posts: 13681
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: (c) symbol in a form

Post by jvierra » Mon May 13, 2019 1:07 am

Both UTF-8 and ASCII work for me.

It is either the default font or character set that controls that but the character  does not map to the © in any that I can find.

User avatar
Alexander Riedel
Posts: 6999
Joined: Tue May 29, 2007 4:43 pm

Re: (c) symbol in a form

Post by Alexander Riedel » Mon May 13, 2019 2:37 am

Yes, but we have no encoding, locale or even PowerShell Studio version information. So UTF-16 is a safe bet. :-)
Alexander Riedel
SAPIEN Technologies, Inc.

Locked