Part 1 - Spotfire - Use Spotfire RXReplace function to add a calculated column with html encoding 1. In the data canvas, go to Data>>Add Calculated column...:
2. Add the expression using the RXREPLACE, with the Test_Method as the column:
Text of the expression:
RXReplace(RXReplace(RXReplace(RXReplace([Test_Method],"µ","%micro","g"),"º","%deg","g"),"²","%sup2","g"),"¹","%sup1","g") 3. Click the OK button and the calculated column will be added and the additional column will appear with the corresponding encoding:
Part 2 - Statistica - The workspace used as a Statistica Data Function uses the RE_REPLACE function 1. Create a workspace to include a spreadsheet and a Transformations of Variables node
a. Spreadsheet:
b. Transformation of Variables node:
Text of the formulas:
Test_Method=RE_REPLACE(RE_REPLACE(RE_REPLACE(RE_REPLACE(Test_Method_Encode,"%micro","µ","g"),"%deg","º","g"),"%sup1","¹","g"),"%sup2","²","g")
temperature_offset=RE_REPLACE(RE_REPLACE(RE_REPLACE(RE_REPLACE("temperature offset_Encode","%micro","µ","g"),"%deg","º","g"),"%sup1","¹","g"),"%sup2","²","g") Part 3 - Register and configure the Statistica workspace as a Statistica Data Function 1. Add the data function to Spotfire Analyst:
2. Configure the data function's definition:
a. Input Definition:
b. Output Definition:
3. Edit the data function parameters:
a. Input:
b. Output:
4. Run the data function and view the output. The output, below, shows the html code translated to the associated special character:
Note: Attached, at the bottom, is the DXP shown in this example (SpecialCharacters Translation.dxp).