:mad:
Was wondering if someone could help out with an rtf to text issue:
The below code simply is trying to take OBX5.1 and convert it to plain text (function found in other posts) however, variable txt contains an empty string so OBX5.1 is blank... Am I missing something.
Any help would be greatly appreciated.
Was wondering if someone could help out with an rtf to text issue:
The below code simply is trying to take OBX5.1 and convert it to plain text (function found in other posts) however, variable txt contains an empty string so OBX5.1 is blank... Am I missing something.
Any help would be greatly appreciated.
Code:
var rtf = "";
var txt = "";
rtf = msg['OBX']['OBX.5']['OBX.5.1'].toString();
txt = FileUtil.rtfToPlainText(rtf, "\n");
msg['OBX']['OBX.5']['OBX.5.1'] = txt
logger.info('Original message ['+ rtf +']');rtfToPlainText Issue
0 commentaires:
Enregistrer un commentaire