简体   繁体   中英

Jar file and Farsi font

My App is connected to Microsoft Access database, on IDE(target)environment it works good and Farsi font comes correctly, but when I run jar file in windows environment Farsi font comes like this ?????? or غلا٠Access is 2013 maybe problem is about Unicode but I don't know how to solve it I didn't find any thing of Farsi font in Internationalization

Try to find out which command line arguments that passed by IDE, You can do so either by inspecting IDE run parameters or with help of Process Explorer .

For console applications almost all of encoding problems are solved by running chcp 65001 preliminarily and by setting setting console font to Lucida Console

by default windows uses Windows-1252 or CP-1252 encoding scheme; if you are running jar file through IDE that will works fine as IDE can use other system fonts that support that arguments language, but not console. If you are running jar file through console then it will so garbage data if that encoding isn't supported by console.

Right click on cmd title bar--> click property Switch to fonts tab and change from raster fonts to ' Lucida Console ' or ' Consolas '; check unicode range in links. if your farsi font comes in that range then it will get properly displayed.

or add ' HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Console\\TrueTypeFont' new string value here with name = 00,000,0000... and value = font name

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM