Re: Console: ascii characters not shown correctly

2023-05-21 Thread Helmut Leininger

Hi,

I did not follow the whole thread, but I could solve similar problems 
with outputr to stderr / stdout in Netbeans by adding these options in 
the project configuration / Run / VM Options:


 -Dstdout.encoding=utf-8 -Dstderr.encoding=utf-8

Netbeans 17, Java 19

Regards

Am 21.05.2023 um 15:44 schrieb Geert Vancompernolle:

Sorry for my late reply, just back from a business trip.

I looked into the referenced pages you gave, applied the 
System.setOut() method with UTF-8 as parameter for the PrintStream() 
method like so:


System.setOut(new PrintStream(System.out, true, "UTF8"));

but it doesn't help.  The only change I see is that one strange 
character is replaced with another strange character.


A pity, because I like this ASCII "graphics".  I applied them already 
back in the '80 to make splash screens at that time (the extended 
ASCII character set was the only option back in those days to create 
some "graphish" intro screens and menus).


I went back to "+---+" and "|" characters to draw my box.


--
Mit freundlichen Grüßen
Helmut Leininger
Email: h.leinin...@gmx.at



OpenPGP_signature
Description: OpenPGP digital signature


Re: Console: ascii characters not shown correctly

2023-05-21 Thread Geert Vancompernolle

Sorry for my late reply, just back from a business trip.

I looked into the referenced pages you gave, applied the System.setOut() 
method with UTF-8 as parameter for the PrintStream() method like so:


System.setOut(new PrintStream(System.out, true, "UTF8"));

but it doesn't help.  The only change I see is that one strange 
character is replaced with another strange character.


A pity, because I like this ASCII "graphics".  I applied them already 
back in the '80 to make splash screens at that time (the extended ASCII 
character set was the only option back in those days to create some 
"graphish" intro screens and menus).


I went back to "+---+" and "|" characters to draw my box.

--
Best rgds,
Geert

On 03/05/2023 13:11, Neil C Smith wrote:

On Mon, 1 May 2023 at 16:47, Geert Vancompernolle
 wrote:

I have the following line in my Java application:

mLogger.info("╔╗");

but I see this in the debug console of NB17:

01-05-2023 17:43:22 INFO HomeControl -
╔��������������������������������������������������������������������������������╗

How can I get the correct ascii characters in NB17?  Previous versions
of NB (e.g. NB12.5) showed this correctly

If this has changed since NB 12.5, then it might be related to
https://github.com/apache/netbeans/issues/4771 and other linked
issues?

Best wishes,

Neil


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Console: ascii characters not shown correctly

2023-05-05 Thread Tim de Vries

Are you using ANSI Escape codes for Netbeans Console Output?

On 2023-05-01 9:46 a.m., Geert Vancompernolle wrote:

I have the following line in my Java application:

mLogger.info("╔╗"); 



but I see this in the debug console of NB17:

01-05-2023 17:43:22 INFO HomeControl - 
╔��������������������������������������������������������������������������������╗


How can I get the correct ascii characters in NB17?  Previous versions 
of NB (e.g. NB12.5) showed this correctly




-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Console: ascii characters not shown correctly

2023-05-03 Thread Neil C Smith
On Mon, 1 May 2023 at 16:47, Geert Vancompernolle
 wrote:
>
> I have the following line in my Java application:
>
> mLogger.info("╔╗");
>
> but I see this in the debug console of NB17:
>
> 01-05-2023 17:43:22 INFO HomeControl -
> ╔��������������������������������������������������������������������������������╗
>
> How can I get the correct ascii characters in NB17?  Previous versions
> of NB (e.g. NB12.5) showed this correctly

If this has changed since NB 12.5, then it might be related to
https://github.com/apache/netbeans/issues/4771 and other linked
issues?

Best wishes,

Neil


Re: Console: ascii characters not shown correctly

2023-05-01 Thread Eric J. Schwarzenbach
Those line characters are not ASCII. They are part of some other 
encodings, including unicode. Those odd characters are suggestive of an 
encoding mixup, though I'm not sure how you'd manage to get one in this 
context (perhaps via your logger setup?). The alternating characters 
suggest something like the attempt to interpret the bytes of a 
multi-byte UTF-8 character as multiple characters.


The other thing that can cause this sort of thing to happen is if the 
particular font used does not support the particular characters used 
(few fonts support the entire unicode set). If the font you used in the 
editor supported these characters but the font used in the output window 
did not, it might cause odd looking output, but more commonly some block 
characters rather than the odd pattern you have here. You can 
right-click on the output window and choose "Settings..." to what font 
it's using.


On 5/1/23 11:46, Geert Vancompernolle wrote:

I have the following line in my Java application:

mLogger.info("╔╗"); 



but I see this in the debug console of NB17:

01-05-2023 17:43:22 INFO HomeControl - 
╔��������������������������������������������������������������������������������╗


How can I get the correct ascii characters in NB17?  Previous versions 
of NB (e.g. NB12.5) showed this correctly


Re: Console: ascii characters not shown correctly

2023-05-01 Thread Amn Ojee Uw
It would be easier to assert the why if you provide the what. Show the 
code that produces the output and someone here will assert why the output.


On 2023-05-01 11:46 a.m., Geert Vancompernolle wrote:

I have the following line in my Java application:

mLogger.info("╔╗"); 



but I see this in the debug console of NB17:

01-05-2023 17:43:22 INFO HomeControl - 
╔��������������������������������������������������������������������������������╗


How can I get the correct ascii characters in NB17?  Previous versions 
of NB (e.g. NB12.5) showed this correctly




-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Console: ascii characters not shown correctly

2023-05-01 Thread Geert Vancompernolle

I have the following line in my Java application:

mLogger.info("╔╗");

but I see this in the debug console of NB17:

01-05-2023 17:43:22 INFO HomeControl - 
╔��������������������������������������������������������������������������������╗


How can I get the correct ascii characters in NB17?  Previous versions 
of NB (e.g. NB12.5) showed this correctly


--
Best rgds,
Geert


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists