Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

The script data source window does not support superscript ASCII characters. This article will outline how to get around this limitation and concatenate high ASCII characters, such as ™ © ®, in a script.

How to Concatenate Superscript ASCII Characters in a Script

  1. Set up a scripting field and an input field on a new label.

  2. Create an output field (must use language wizard/field override UTF-8 or UTF-16).
  3. Modify the example below using the names of the fields on your label.
  4. Copy the modified script into the scripting field data source window.

  5. You can change the character by using the Character Map tool to get the U+xxxx code.

Image RemovedImage Added

Code Block
//Begin
 var coName = String(label.fields.field.(@name == 'CoName').@data); 
 //concat "TM" symbol \u value found in character map
 coName = coName + "\u2122"; 
 label.fields.field.(@name == 'CoName_TM').@data = coName; 

 If the Company Name (coName) in the example above was LOFTWARE the result would be:

LOFTWARE™

Content by Label
spacesLPSKB
reversetrue
max5
sortmodified
labelskb-how-to-article script
showSpacefalse
typepage

Article Number

Status
colourGreen
title2018001

Versions

Loftware Label Manager 9.5.3 and higher

Environment

All supported Loftware environments

 

Page properties
hiddentrue

This table provides information that is visible only to Loftware users.

Linked Jira
JIRA
serverJira
serverIdb694bd2b-f495-3baf-a460-a9c93a1d1de3
keyOOB-720
Incident Number 
AuthorMichael Alley 
Review Date