2011-05-07 75 views

Trả lời

33

Bạn có thể cài đặt Netbeans của bạn với tùy chọn khởi động
nơi nó bên netbeans.conf vào netbeans_default_options

-J-Dfile.encoding=UTF-8

Cuối cùng nó sẽ giống như

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

Hy vọng nó sẽ giúp bạn

+0

Tôi cần thêm nhận xét Farsi/Arabic/rtl nhưng ver bad position how to f ix nó? nó hoạt động đúng trong eclipse – SjB

+0

Tôi nghĩ rằng bạn phải tạo ra toàn bộ tài liệu (tập tin mã nguồn) trong rtl/Farsi/Arabic, bạn không thể đánh dấu chỉ là một nơi để được RTL. –

+0

Làm thế nào để tạo toàn bộ tài liệu (tệp mã nguồn) bằng rtl/Farsi/Arabic? – SjB

3

Dưới đây là hướng dẫn để thiết lập ký tự mặc định trong Netbeans sang UTF-8 (trong Windows):

1 Go to C:\Program Files\netbeans-x.x\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

Ubuntu đi thư mục cũ.

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

Thêm

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

Lưu số tiền

Các vấn đề liên quan