This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | I18N - wrong encoding for Find & Search | ||
---|---|---|---|
Product: | utilities | Reporter: | ale4349koc <ale4349koc> |
Component: | Search | Assignee: | Marian Petras <mpetras> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | kfrank, prehak |
Priority: | P2 | Keywords: | I18N |
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 97878 | ||
Bug Blocks: | |||
Attachments: | Issue 71197 examples in pictures |
Description
ale4349koc
2006-01-09 14:45:00 UTC
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. Alex, 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. ken.frank@sun.com This issue has already been reported as issue #79337 and I fixed it on 22 September 2006. *** This issue has been marked as a duplicate of 79337 *** Hello, guys 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. Alex 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. Thanks ken.frank@sun.com 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. Modified files: utilities/src/org/netbeans/modules/search/types/FullTextType.java (1.55) utilities/nbproject/project.xml (1.25) utilities/manifest.mf (1.65) ide/golden/deps.txt (1.481) Diffs: http://utilities.netbeans.org/source/browse/utilities/src/org/netbeans/modules/search/types/FullTextType.java?r1=1.54&r2=1.55&diff_format=u http://utilities.netbeans.org/source/browse/utilities/nbproject/project.xml?r1=1.24&r2=1.25&diff_format=u http://utilities.netbeans.org/source/browse/utilities/manifest.mf?r1=1.64&r2=1.65&diff_format=u http://ide.netbeans.org/source/browse/ide/golden/deps.txt?r1=1.480&r2=1.481&diff_format=u Alex, is this fixed ok for you now, using netbeans 6 milestone 9 build if possible ? ken.frank@sun.com |