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??
Asked
Active
Viewed 224 times
0
-
1Can you show an example of what you are copying, what you expect and what is it actually getting displayed ? – Shailendra Nov 13 '21 at 13:42
-
1Make sure to store your files with an encoding that can support the Urdu letters. – Ole V.V. Nov 13 '21 at 13:57
-
1You need to post sample code to show what you are doing, and stating that "_it's not working_" does not explain your specific problem at all. Provide enough detail so that others can attempt to reproduce your issue. As it stands the question cannot be answered because it simply does not provide enough information. See [How do I ask a good question?](https://stackoverflow.com/help/how-to-ask). – skomisa Nov 14 '21 at 00:05
-
Please provide enough code so others can better understand or reproduce the problem. – Community Nov 15 '21 at 11:28
1 Answers
1
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 "?????"

Shailendra
- 8,874
- 2
- 28
- 37