Hi, everybody :<br><br>I am just beginning to  translate message PO files (in Scilab 5-beta-1) into Chinese language (zh_TW),  and hope that will meet the next release schedule of Scilab 5.<br><br>To test my translation (only few PO file right now), I generated scilab.mo and scilab.po files in loclate\zh_TW\LC_MESSAGES with  script   generatePoFile in directory  toos\localization after setting language to 'zh_TW'.<br>
<br>The attached files are screehshots  after startup  of Scilab  showing banner lines of my Chinese messages by   scilex.exe and Wscilex.exe respectively in Windows-XP.<br><br>The first screehshot (scilexChinese.png generated by scilex.exe ) correctly displays Chinese characters , while the second  one (wscilexChinese.png by Wscilex.exe) fails.<br>
<br>My Windows-XP locale setting is zh_TW.BIG5 , while  messages  in core.po file   are in UTF-8 encoding.<br><br>It appears to me that  Windows  will transform messages back to   its default encoding (in my case, BIG5) and DOS console (scilex) handle this correctly.  But Java console expect an UTF-8  messages and the  received  BIG5 encoding messages cause its failure in showing Chinese banner lines.  <br>
<br>I think this is not a specific problem associate with Chinese  language, any multibytes language with  locale setting not in UTF-8  will probable  fail in the same way.<br><br>I try to trace the source codes of Java console module to find a way to attack this problem.  Transform messages back to UTF-8 in ConsolePrint.cpp ( module console) may help , for example :<br>
<br>int ConsolePrintf(char *line)<br>{<br>  lineUtf8=localeToUtf8(line); // <------ transform back to utf8<br>  CallScilabBridge::display(getScilabJavaVM(), line);<br>  return 0;<br>}<br><br>In this way, we need a function 'localeToUtf8'  which transform output strings from locale to UTF-8 encoding. This function is provided in Glib and may be implemented form iconv API within current Scialb developement environment.<br>
<br>Hope my test can help and looking forward for suggestions or instructions to attack this problems.<br><br><pre>Best regards,<br><br>YungLee<br></pre><br><br><br>