Strings in print and log statements
In both print and log statements, the string can be any one of the following:
Literal, for example:
print "Hello";Variable, for example:
string welcomeMessage;
...
log welcomeMessage;
Combination of both, for example:
string welcomeMessage;
...
print "Hello " + welcomeMessage + " Bye";
Internally, the correlator encodes all textual information as UTF-8. When the correlator outputs a string to a console or stdout because of a print statement, or sends a string to the log, the correlator translates the string from UTF-8 to the current machine’s (where the correlator is running) local character set. However, if you redirect stdout to a file, the correlator does not translate to the local character set. This ensures that the correlator preserves as much information as possible.
Copyright © 2013
Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.