Thanks for your reply.
What I mean by changing the encoding is that when I use 'System.out.println("ñ " + "â")' the output is two squares. Now, if memory does not failed me, the way this problem was resolved before was by changing the encoding used by NB from UTF-x to some other encoding. However, cannot recall how I did it in NB13, so that I can repeat the process in NB14.

On 2022-07-22 4:51 p.m., 多多氷氷 wrote:
On 2022/07/22 01:51:09 Amn wrote: > How can I change the font encoding in NB14? > > -- > *Using Fire Fox and Thunderbird.* > Developing for Android using Java, C/C++, HTM/CSS and SQLite as our > platform has been exciting and most rewarding. > [ Ñ ] > > -- > This email has been checked for viruses by AVG. > https://www.avg.com >

What do you mean by font encoding?

There are encodings and then there are fonts.

*As far as fonts go:
*
You can set the font via Tools -> Options -> Fonts & Colors

If you want to configure font fallbacks there is currently no option to do this via the Netbeans UI. You need to change the JDK's fontconfig.properties. How that can be done is explained in: https://blog.ef-4.co.jp/netbeans%E3%81%A7unicode%E7%B5%B5%E6%96%87%E5%AD%97%E3%82%92%E8%A1%A8%E7%A4%BA%E3%81%97%E3%81%9F%E3%81%84%EF%BC%81windows-10/ (It's in Japanese so you may need something like deepl.com to translate some bits)

*Encoding:
*
There are a dozen ways to change the encoding; if you want to change the Java encoding globally; create a system variable called "JAVA_TOOL_OPTIONS" and write something like "-Dfile.encoding=utf-8 -Dsun.stdout.encoding=utf-8" to it.

Best wishes,

Bing

--
*Using Fire Fox and Thunderbird.*
Developing for Android using Java, C/C++, HTM/CSS and SQLite as our platform has been exciting and most rewarding.
[ Ñ ]

--
This email has been checked for viruses by AVG.
https://www.avg.com

Reply via email to