By default, support for the character encoding for the Japanese language, Shift-JIS, is not available on Ubuntu and on RedHat OS version 8 or later.
You need to generate the Shift JIS locale on your machine to be able to execute Shift-JIS applications on these platforms. You can do this as follows:
sudo localedef -f SHIFT_JIS -i ja_JP ja_JP.sjis
export COBUTF8=ja_JP.sjis export LANG=ja_JP.UTF-8
See your product documentation for more details about cobutf8.