MATLAB: Am I unable to display accented characters returned by the standalone application

Database ToolboxMATLAB Compiler

I have written a program to extract some data from a database and then display it in command window. The data to be extracted contains accented characters, for example, the string "ManĂ¡". I have compiled the code as a standalone application and am running it against MATLAB Compiler Runtime v79 (R2008b).
However, the output in the command window drops the accented character, for example, with "ManĂ¡", the output becomes "Man ". I have already exported LANG as en-US.UTF-8 in the /etc/profile file, as per the workaround mentioned in the following bug report:

Best Answer

In addition to modifying the LANG environment variable as mentioned in the bug report, modify your MATLAB code to direct MATLAB to use UTF8 character set. This can be done by invoking the FEATURE command as follows
feature('DefaultCharacterSet','UTF8')