How can I write "Urdu language words" in java Netbeans

282 Views Asked by At

I'm trying to make a tailor software for a tailor shop and I have almost done everything, but they want all the words and characters to be in Native Urdu Language, I have tried copying Urdu words from other softwares to Netbeans but it's not working!! What can I do to solve this issue??

1

There are 1 best solutions below

0
Shailendra On

You are probably running into encoding issue as explained here. You need to add "-J-Dfile.encoding=UTF-8" in netbeans.conf file. Also if you are running your project with maven you might need to add "-Dfile.encoding=UFT-8" in project properties in "Run" section. After doing both of these in a simple maven based java program in netbeans - I can successfully output the Urdu text for "hello" in the netbeans terminal. If you don't do this you would get something like "?????"

enter image description here