Re: UTF-8 input is broken in Maven project

2021-10-30 Thread Michael Bien
the hint that it was a maven specific issue helped me to find it 
relatively quickly - thanks :)


https://github.com/apache/netbeans/pull/3289

i don't know if it will make it into NB 12.6, thats in the hand of the 
reviewers.


best regards,
michael


On 30.10.21 12:19, Vladimir Machat wrote:


Hi Michael,

yes I have tried that, but nothing changed :(

On 30/10/2021 11:10, Michael Bien wrote:

Hi Vladimir,

thats interesting. Since you are on linux, UTF-8 should be the 
default as far as I know.


have you tried to add -J-Dfile.encoding=UTF-8 to your 
etc/netbeans.conf (netbeans_default_options property)?


regards,
michael


On 30.10.21 11:55, Vladimir Machat wrote:

Hi All,

When I create a Java with Maven Project and try to run simple code 
like this:


Scanner sc = new Scanner(System.in, "UTF-8");
System.out.println("Enter text: ");
String text = sc.nextLine();
System.out.println("You have entered: " + text);

If I enter anything containing letters like ščřžýáíé (from the czech 
language), the output in the output window would be broken, the 
special letters replaced with characters like �.


The exactly same code works perfectly in the same Netbeans 
installation, just using the project Java with Ant.


Also if I  run the project in terminal outside Netbeans, using the 
command from the output window, it works correctly.


I tried this on Manjaro Linux and Windows 10, with Netbeans 12.5 
12.4 12.3, with the same result.


Any ideas how to solve this problem?

Thanks

PS: I created an issue in Netbeans Jira about it a while ago:

https://issues.apache.org/jira/browse/NETBEANS-6115







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

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





Re: UTF-8 input is broken in Maven project

2021-10-30 Thread Vladimir Machat

Hi Michael,

yes I have tried that, but nothing changed :(

On 30/10/2021 11:10, Michael Bien wrote:

Hi Vladimir,

thats interesting. Since you are on linux, UTF-8 should be the default 
as far as I know.


have you tried to add -J-Dfile.encoding=UTF-8 to your 
etc/netbeans.conf (netbeans_default_options property)?


regards,
michael


On 30.10.21 11:55, Vladimir Machat wrote:

Hi All,

When I create a Java with Maven Project and try to run simple code 
like this:


Scanner sc = new Scanner(System.in, "UTF-8");
System.out.println("Enter text: ");
String text = sc.nextLine();
System.out.println("You have entered: " + text);

If I enter anything containing letters like ščřžýáíé (from the czech 
language), the output in the output window would be broken, the 
special letters replaced with characters like �.


The exactly same code works perfectly in the same Netbeans 
installation, just using the project Java with Ant.


Also if I  run the project in terminal outside Netbeans, using the 
command from the output window, it works correctly.


I tried this on Manjaro Linux and Windows 10, with Netbeans 12.5 12.4 
12.3, with the same result.


Any ideas how to solve this problem?

Thanks

PS: I created an issue in Netbeans Jira about it a while ago:

https://issues.apache.org/jira/browse/NETBEANS-6115




Re: UTF-8 input is broken in Maven project

2021-10-30 Thread Michael Bien

Hi Vladimir,

thats interesting. Since you are on linux, UTF-8 should be the default 
as far as I know.


have you tried to add -J-Dfile.encoding=UTF-8 to your etc/netbeans.conf 
(netbeans_default_options property)?


regards,
michael


On 30.10.21 11:55, Vladimir Machat wrote:

Hi All,

When I create a Java with Maven Project and try to run simple code 
like this:


Scanner sc = new Scanner(System.in, "UTF-8");
System.out.println("Enter text: ");
String text = sc.nextLine();
System.out.println("You have entered: " + text);

If I enter anything containing letters like ščřžýáíé (from the czech 
language), the output in the output window would be broken, the 
special letters replaced with characters like �.


The exactly same code works perfectly in the same Netbeans 
installation, just using the project Java with Ant.


Also if I  run the project in terminal outside Netbeans, using the 
command from the output window, it works correctly.


I tried this on Manjaro Linux and Windows 10, with Netbeans 12.5 12.4 
12.3, with the same result.


Any ideas how to solve this problem?

Thanks

PS: I created an issue in Netbeans Jira about it a while ago:

https://issues.apache.org/jira/browse/NETBEANS-6115





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

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





UTF-8 input is broken in Maven project

2021-10-30 Thread Vladimir Machat

Hi All,

When I create a Java with Maven Project and try to run simple code like 
this:


Scanner sc = new Scanner(System.in, "UTF-8");
System.out.println("Enter text: ");
String text = sc.nextLine();
System.out.println("You have entered: " + text);

If I enter anything containing letters like ščřžýáíé (from the czech 
language), the output in the output window would be broken, the special 
letters replaced with characters like �.


The exactly same code works perfectly in the same Netbeans installation, 
just using the project Java with Ant.


Also if I  run the project in terminal outside Netbeans, using the 
command from the output window, it works correctly.


I tried this on Manjaro Linux and Windows 10, with Netbeans 12.5 12.4 
12.3, with the same result.


Any ideas how to solve this problem?

Thanks

PS: I created an issue in Netbeans Jira about it a while ago:

https://issues.apache.org/jira/browse/NETBEANS-6115



Re: Programmatically make a TopComponent float by default

2021-10-30 Thread John Kostaras
How about the trick mentioned in this article
 (search for
'float')?
To display the Layer XML, right click on your module, *New -> Other ->
Module Development -> XML Layer*.



On Thu, 28 Oct 2021 at 04:24, Arcturus Bootes 
wrote:

> Hi All,
>
> I have a NetBeans platform application I am working on and I would like to
> have a TopComponent I am using "float" by default. I am not sure how to do
> this and would be grateful if I can get some advice on any annotation or
> something I can set to make it float by default.
>
> Thank you.
>