How to display UTF8 in Netbeans 7.8?

In my java project, I need to use arabic text and lines, but the text becomes like "???????" so what's wrong? and how to solve this problem?

thank

+20
netbeans utf netbeans-7
May 7 '11 at 17:34
source share
4 answers

You can configure Netbeans with the launch option, place it inside netbeans.conf in netbeans_default_options

-J-Dfile.encoding=UTF-8

In the end, it should look like

netbeans_default_options="..... -J-Dfile.encoding=UTF-8"

Hope this helps you.

+35
May 7 '11 at 17:45
source share

The following are instructions for setting the default character set in Netbeans for UTF-8 (on Windows):

 1 Go to C:\Program Files\netbeans-xx\etc 2 Open netbeans.conf in Notepad. 3 On the netbeans_default_options add: -J-Dfile.encoding=UTF-8. (make sure to put it within the quotation marks) 4 Project properties -> Build -> Compiling -> Additional compiler options) text box.- add: -encoding UTF-8 5 You can also check to make sure that you have increased the memory allocation for Netbeans by looking at the netbeans_default_options line. The default max is 128MB. We have increased this to 256MB. 
+3
May 14 '14 at 5:04
source share

Ubuntu go ex directory

sudo gedit / usr / local / netbeans-8.0 / etc / netbeans.conf

Add

netbeans_default_options = "- J-Dfile.encoding = UTF-8"

Save final

+3
May 30 '14 at 11:37
source share

Please follow the problem below to solve how in UTF 8 Dari, Pashto, Persian and Arabic support in Netbeans

  1. open the windows of the form C: \ Program Files \ NetBeans 8.0.2 \ etc
  2. than copy netbeans.conf to some place on your computer
  3. add -J-Dfile.encoding = UTF-8 inside netbeans_default_options =
  4. as below code
  5. netbeans_default_options = "- J-Dfile.encoding = UTF-8 -J-client -J-Xss2m -J-Xms32m -J- XX: PermSize = 32m -J-Dapple.laf.useScreenMenuBar = true -J-Dapple.awt. graphics.UseQuartz = true -J-Dsun.java2d.noddraw = true -J-Dsun.java2d.dpiaware = true -J-Dsun.zip.disableMemoryMapping = true "
  6. how to replace the file in C: \ Program Files \ NetBeans 8.0.2 \ etc
  7. Now close NetBeans and open it again so that it works in all languages ​​such as Dari, Pashto, Persian, Arabic, etc.
0
May 16 '19 at 7:27
source share



All Articles