The string viewing window
This is one of the features of the translator IDE which makes it so convenient to manipulate data. Try copy pasting this code into a translator window:
local Message=[[
MSH|^~\&|AcmeMed|Lab|Main HIS|St. Micheals|20110213144932||ADT^A03|9B38584D9903051F0D2B52CC0148965775D2D23FE4C51BE060B33B6ED27DA820|P|2.6|
EVN||20110213144532||||20110213145902|
PID|||4525285^^^ADT1||Smith^Tracy||19980210|F||Martian|86 Yonge St.^^ST. LOUIS^MO^51460|||||||10-346-6|284-517-569|
NK1|1|Smith^Gary|Second Cousin|
PV1||E||||||5101^Garland^Mary^F^^DR|||||||||||1318095^^^ADT1|||||||||||||||||||||||||20110213144956|
OBX|||WT^WEIGHT||102|pounds|
OBX|||HT^HEIGHT||32|cm|
]]
function main(Data)
trace(Message)
end
Double click in the annotation window:
Double click in the annotations from the trace window
![]()
Then see the plain view
![]()
Note in the bottom right corner, you can also easily Copy Content of a large string.
And the escaped view
In this view we can see newline characters escaped:
![]()
Did you know, windows expresses newlines with \r\n while the rest of the Unix based world uses \n?
This can make a real impact on your data. See What does it mean when we read a file in binary?
Then the hexadecimal view
Hexadecimal view is very helpful for seeing characters which are not printable like newlines etc.:
![]()
Notice how the special characters are highlighted?