IBM i Global

IBM i Global

Connect, learn, share, and engage with IBM Power.

 View Only
  • 1.  How to get the proper trademark symbol in applications

    Posted Tue December 03, 2024 09:46 AM

    Hi,

    Bit of a weird question here and I've been trying to look up some articles on this but is there a way to display/print the ™ (trademark symbol) in our IBM i applications? It mentions something about unicode and I've been trying to find examples on how to do it. When I enter the ALT code of 0153 on the keyboard it displays the symbol but as soon as I press enter on the IBM i command or anywhere on the IBM i it changes it to a question mark.

    Thanks in advance....

    Brian



    ------------------------------
    Brian Rice
    ------------------------------


  • 2.  RE: How to get the proper trademark symbol in applications

    Posted Wed December 04, 2024 04:19 AM

    Hi Brian,

    I don't think that is possible since the Trademark character does not appear to be part of the EBCDIC character set, hence why it is "translated" to a ? or IBM's Non-Displayable character as it is also known. 

    You "may" be able to do something programmatically by, for example, using a character set that includes the trademark character, but I've never tried that. 



    ------------------------------
    Regards,
    Keith Pryke
    ------------------------------



  • 3.  RE: How to get the proper trademark symbol in applications

    Posted Wed December 04, 2024 08:42 AM

    i would make sure that you want to use ™ and not ® 

    this "article" shows a difference Trademark Symbols ™ , ® , © , and ℠ - How To Use Each One

    the "registered TM" symbol is valid  hex x'AF'



    ------------------------------
    Bryan Dietz
    ------------------------------



  • 4.  RE: How to get the proper trademark symbol in applications

    Posted Thu December 05, 2024 01:40 PM
    Edited by Barbara Morris Thu December 05, 2024 01:40 PM

    If you're using ACS for your emulator, you can enable Unicode in the "Communication" > "Configure" menu. If you're using display files (DSPF), you'd also need the fields that would hold the special characters to be UTF-16, DDS type G  CCSID(1200).

    (I don't know about other emulators.)

    There are 3 Unicode options. I have them all enabled, but I think the first one is the one that affects whether non-EBCDIC symbols like the TM symbol can show.

    Here's the help for the 3 options in the ACS Configure menu of the emulator:

    Enable Unicode Data Stream
    This setting enables Unicode support for i5/OS and OS/400. The 5250 Display session displays Unicode characters that the IBM i host has written into fields tagged with a Coded Character Set Identifier (CCSID). For more information see Unicode support for i5/OS and OS/400 using Coded Character Set Identifiers

    Enable DBCS in Unicode Fields
    Allows DBCS characters to be displayed when Unicode characters are present in fields tagged with a Coded Character Set Identifier (CCSID).



    Protect Unicode Field Length
    Unicode fields allow for both single-width and double-width characters to be displayed. The Presentation Space must draw the field before any values are entered and so the maximum length is used, which assumes that all characters are double-width. Unfortunately this means that twice as many single-width characters can be entered than are allowed. If this option is selected, the defined length of the Unicode field will be protected.


    ------------------------------
    Barbara Morris
    ------------------------------