Hello, Dear NB Community!
I use NB 5.0-beta and used 4.1 & 3.6 before.
I had a hope that new NB version will do foreign language text search in project
and module, but it does not. When I do Edit-Find in Projects, enter any text in
Russian (my case) and push “Search” button, I received “No matching nodes were
found”, but they are exist in my code.
I think similar problem exist for other non-English languages.
Another problem is wrong encoding of non-English characters in Search Results
window, when in main window everything looks fine. I do search for some java
directive (out.println, for example), NB found all of them and show in Search
Results window, but Russian characters (comment for out.println in my case) are
not encoded correctly, whiles they look absolutely correct in main window.
Thanks for your attention
I've tried to reproduce the problem with using Czech letters but Find in
Projects worked fine in the present dev build.
Reassigning to utilities/search for further evaluation.
can you send more details and steps for each of the 2 things mentioned below,
also some gifs to show how the incorrect rendering of the Russian is ?
Also info on what platform(s) and locales on each will be helpful.
This issue has already been reported as issue #79337 and I fixed it on 22
*** This issue has been marked as a duplicate of 79337 ***
Sorry for too late response.
My environment is next:
- I am working under Windows XP (Regional options standards – Russian, Location
– Russia, Default input Language – English (US), Additional keyboard Language –
Russian, Language for non-Unicode programs – Russian)
- I am using NB 4.1 currently
- I am programming Java and JSP modules with <%@page pageEncoding="UTF-8"%>
First problem is next: My Java and JSP contain the comments in Russian. When I
try to search some Russian text via “Edit-Find in Projects” NetBeans returns
correct search for Java classes, but does not show any occurrences of this text
in JSP modules. Everything works fine when I do search for English text.
Second problem is next: I have some Java code (for example String AIRA = "";
// код авиакомпании). The comment is in Russian. When I do “Edit-Find in
Projects” search for AIRA (not for Russian text), NetBeans found all lines with
this text and show in Search Results window. If AIRA text was found in Java
classes, Russian comment looks fine and readable. If AIRA text was found in JSP
modules the Russian comment is unreadable, because of wrong Encoding.
Probably it relates to <%@page pageEncoding="UTF-8"%>, which I am using for JSP.
Thanks for your attention and help.
Best wishes to all of you.
I think this might need to be entered as a new issue, since it seems the
bug that this one is marked as a duplicate of, 79337, has been fixed and verified
and seems to relate to java, not jsp.
Alex, I can enter a new issue on this as relates to jsp, using your comment
below as the text. (unless you want to)
If you do, please mark as p2 and add the words I18N - to the summary line
as is shown in this issue.
And if you can then add a gif or jpg to that new issue, showing how the
ide looks when you see the problem, that will be helpful.
Created attachment 37383 [details]
Issue 71197 examples in pictures
You are right that this issue is not an exact duplicate of bug #79337 (which is
only about Java files). So I reopened this issue.
This issue cannot be fixed until there is some API for obtaining information
about encoding of individual files. Issue 79337 is fixed because it uses an
unofficial API that works for Java files. The generic API should be added by
Milestone 7 of NetBeans 6.0 and I will then accomodate the search feature to use
it as soon as possible.
*** Issue 90661 has been marked as a duplicate of this issue. ***
Fixed in the trunk.
is this fixed ok for you now, using netbeans 6 milestone 9 build if possible ?