You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Geert Vancompernolle <ge...@gmail.com> on 2023/05/01 15:46:11 UTC

Console: ascii characters not shown correctly

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-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@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

Posted by Amn Ojee Uw <am...@gmail.com>.
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-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@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

Posted by Helmut Leininger <h....@gmx.at>.
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.leininger@gmx.at


Re: Console: ascii characters not shown correctly

Posted by Geert Vancompernolle <ge...@gmail.com>.
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
> <ge...@gmail.com> 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-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@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

Posted by Neil C Smith <ne...@apache.org>.
On Mon, 1 May 2023 at 16:47, Geert Vancompernolle
<ge...@gmail.com> 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

Posted by Tim de Vries <te...@gmail.com>.
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-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

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