Usually, NUL characters are the terminating characters. Therefore, when you try to copy or cut the content containing NUL characters and paste it into a different editor, the content only until the first NUL character is pasted. To paste the content containing NUL characters(s), you can replace the NUL character with a character of your choice.
This feature enables you to check for NUL characters in your files and to configure a different value for the NUL character when a file containing this character is opened in an editor.
When you open a file that includes the NUL control character, you can observe that the NUL characters appear as a square box or a space, depending on the font you have set in the editor.
By default, a file containing the NUL characters opens in an editor in the read/write mode, and OS 2200 IDE for Eclipse converts the NUL character to tilde ("~") when you cut or copy the content of the file and paste it into a different editor.
To configure a different value for the control character and replace the control character with the configured value in the editor, do the following steps:
Click Window > Preferences.
Expand General > Editors > Text Editors, and click Control Character.
Under Control Character, do one or both of the following:
In
the Replacement character
for NUL text box, type
a character that you want to replace with the NUL control character
when you open the file in the editor.
Note:
If you do not enter any character and leave the text box empty,
OS 2200 IDE for Eclipse takes a space as the value.
Select
the Enable replacement check
box if you want OS 2200 IDE for Eclipse to search for NUL
in every file you open.
Note:
By default, this check box is disabled, as checking for the NUL
control character in every file causes performance issues.
Click OK.
Once you have selected the Enable replacement check box, if you try to open a file that includes the NUL control character, the Control character dialog box appears indicating the presence of the NUL character. The dialog box also indicates that if you choose to replace the control character with the configured value, the file will be opened in the read-only mode. If you click Yes in the dialog box, the file content appears in the text editor after converting the NUL control character into the configured character, and the editor opens in the read-only mode to avoid saving the content accidentally.
Note:
The conversion of the NUL control character occurs only in the editor,
and the content of the original file remains the same.
If you click No or if you
do not select the Enable replacement
check box,
the file opens in an editor where the control character remains as is.
However, you can cut or copy the content of the file and paste the content
into any desired editor, where the control characters appear as the configured
character.
Note: This feature does not support Japanese characters.