Copyright symbol
#34407
29 Jun 21 10:16 AM
|
Joined: Jun 2001
Posts: 11,925
Jack McGregor
OP
Member
|
OP
Member
Joined: Jun 2001
Posts: 11,925 |
How do I consistently get a copyright symbol?
?TAB(-1,23);TAB(-1,77);TAB(-1,24); ?" 1985 - 2021"
![[Linked Image]](http://www.microsabio.net/ForumImages/copyright.png) This looks like a character set problem. I tested it on my local A-Shell/Windows and it prints correctly... ![[Linked Image]](http://www.microsabio.net/ForumImages/copyright2.png) To investigate the charset, we can look at the About box ... ![[Linked Image]](http://www.microsabio.net/ForumImages/copyright3.png) ... or at the miame.ini ...
FONT=Lucida Console,ANSI
CHARSET=LATIN1
Both of these confirm that we are using the Latin1 character set, which is probably the best approach (since the character set is standardized). You are probably using the OEM character set, which may vary across PC environments. If Latin1 works for you, let's go with that. Otherwise, can you post the FONT and CHARSET info from your miame.ini and/or About box and we can try digging deeper...
|
|
|
Re: Copyright symbol
[Re: Jack McGregor]
#34518
16 Aug 21 08:46 AM
|
Joined: Jul 2001
Posts: 461
Joe Leibel
Member
|
Member
Joined: Jul 2001
Posts: 461 |
I have this in an INI and it still isn't getting the copyright symbol. It seems to be OK sometimes but not others.
CONSOLE=NETUNIQUE,PCTDVG FONT=Lucida Console,ANSI CHARSET=LATIN1
There was also OPTIONS=LATIN1
|
|
|
Re: Copyright symbol
[Re: Jack McGregor]
#34519
16 Aug 21 10:08 AM
|
Joined: Jun 2001
Posts: 11,925
Jack McGregor
OP
Member
|
OP
Member
Joined: Jun 2001
Posts: 11,925 |
Does the About box also report the Font (Symset) and Application Char Set as in my example above? (I'm thinking that one possibility could be that the actual settings are not those in the MIAME.INI due to being overridden by the .ash file or some runtime operation.) Another possibility to investigate is that when you go into Settings > Font (System) you see something significantly different than this... ![[Linked Image]](https://www.microsabio.net/ForumImages/font.png) I vaguely recall you had a few sites with strange language/locale variations that required some workarounds in the past. If this only happens at a few sites, maybe we need to look more closely as the system properties (Windows version, etc.) and the language/locale/regional settings? Yet another idea might be to switch from the system fixed-pitch font to a GUI font for just that symbol (most easily accomplished by changing from PRINT to TPRINT for just that operation.)
|
|
|
Re: Copyright symbol
[Re: Jack McGregor]
#34520
16 Aug 21 11:02 AM
|
Joined: Sep 2002
Posts: 5,486
Frank
Member
|
Member
Joined: Sep 2002
Posts: 5,486 |
Just thinking out loud here... not knowing where you are using this but presumably some sort of invoice? Or gui screen? If so, would it be easier to find a suitable png image and just use that?
|
|
|
Re: Copyright symbol
[Re: Jack McGregor]
#34521
16 Aug 21 11:40 AM
|
Joined: Jun 2001
Posts: 11,925
Jack McGregor
OP
Member
|
OP
Member
Joined: Jun 2001
Posts: 11,925 |
That would certainly be an end run around the problem! Yet another workaround (but only for GDI printed output) would be to use the Embedded Entity Reference notation to specify a UNICODE - see See Printing Special Symbols
|
|
|
Re: Copyright symbol
[Re: Jack McGregor]
#34522
16 Aug 21 01:19 PM
|
Joined: Jul 2001
Posts: 461
Joe Leibel
Member
|
Member
Joined: Jul 2001
Posts: 461 |
I am trying to get the copyright to display on the main menu.
About shows : Version 6.4.1558.4 Font - Lucida Console(oem) Charset - Latin1 (8 bit)
I changed the settings font to Lucida Console
The customer is on the latest 6.4 version but I did a repair. I still don't get the copyright.
What would the TPRINT line look like?
|
|
|
Re: Copyright symbol
[Re: Jack McGregor]
#34523
16 Aug 21 01:36 PM
|
Joined: Sep 2002
Posts: 5,486
Frank
Member
|
Member
Joined: Sep 2002
Posts: 5,486 |
Joe, why not display a png image? A quick google search shows dozens of "free" downloadable variations. Then all you need to do is xcall aui it to the location you wish.
AUI'CTYPE2=MBF2_GDIPLUS+MBF2_GLOBAL ! global al
XCALL AUI,"CONTROL",1,AUI'CTLID$, &
AUI'TEXT, &
AUI'STATE, AUI'TYPE, &
AUI'CMD,NUL_FUNC$,NUL_CSTATUS, &
LR,LC,RR,RC, &
NUL_FGC, NUL_BGC, &
NUL_FONTATTR, NUL_FONTSCALE, NUL_FONTFACE$, AUI'TOOLTIP, &
AUI'PARENTID$, NUL_WINCLASS$, NUL_WINSTYLE, NUL_WINSTYLEX, &
AUI'CTYPE2
!
Last edited by Frank; 16 Aug 21 01:43 PM.
|
|
|
Re: Copyright symbol
[Re: Frank]
#34524
16 Aug 21 04:21 PM
|
Joined: Jul 2001
Posts: 461
Joe Leibel
Member
|
Member
Joined: Jul 2001
Posts: 461 |
I don't want to put that much effort into a little problem a few customers are having. Its not happening on everyone so why add a potential problem to the bulk of my users? The PNG file would need to be on every server/workstation or there would be an error. Right now there is only a wrong display that doesn't bother anyone but me.
Its a good solution, just not for me.
|
|
|
Re: Copyright symbol
[Re: Jack McGregor]
#34525
16 Aug 21 11:23 PM
|
Joined: Jun 2001
Posts: 3,424
Jorge Tavares - UmZero
Member
|
Member
Joined: Jun 2001
Posts: 3,424 |
I tried all the weird combinations with the Ashell settings related to this - font, charset and options in MIAME.INI and the Fixed font setting at the top menu, and always get the copyright symbol displayed correctly. Considering that you notice the problem, only, in some customers and believing that you keep these kind of AShell settings unchanged for all customers, it makes me suspect the problem is in some local setting outside of AShell. In the affected customers, does it happen in all workstations? If you run the sample test program, with the line ?TAB(-1,23);TAB(-1,77);TAB(-1,24);, does it still not work? I believe this is an ATE install, which I barely have zero knowledge, but can it be related to ATE or Regional settings on the server and/or client computers?
That's all I can think of.
Hope you find the culprit, have fun.
Last edited by Jorge Tavares - UmZero; 16 Aug 21 11:24 PM.
Jorge Tavares
UmZero - SoftwareHouse Brasil/Portugal
|
|
|
Re: Copyright symbol
[Re: Jack McGregor]
#34526
17 Aug 21 06:39 AM
|
Joined: Sep 2002
Posts: 5,486
Frank
Member
|
Member
Joined: Sep 2002
Posts: 5,486 |
|
|
|
|
|