Force Matlab to use UTF8

In file  lcdata.xml within “lcdata” add block:

     <locale name="lv_LV" encoding="UTF-8" xpg_name="lv_LV.UTF-8">
         <alias name="lv"/>
         <alias name="lv_LV"/>
     </locale>