DVT SystemVerilog IDE User Guide
Rev. 24.1.15, 10 July 2024

43.8 Save could not be completed

You might encounter the following error message while trying to save a file in the DVT editor:

Save could not be completed.

Reason: Some characters cannot be mapped using "CHAR_ENCODING" character encoding. Either change the encoding or remove the characters that are not supported by the "CHAR_ENCODING" character encoding.

This means there are other characters than "CHAR_ENCODING" (e.g. ASCII) in the edited file, most probably introduced by another tool that was used for editing the same file. In order to locate (and eventually remove) these characters, you can use the following perl command:

perl -nwe 'print if /[^[ :ascii: ]]/' filename