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.
The search should use the FileEncodingQuery to read the files in correct encoding. It should do something like: final Charset c = FileEncodingQuery.getEncoding(this.getDataObject().getPrimaryFile()); final Reader r = new InputStreamReader (primaryFile.getInputStream(), c); try { search (r); } finally { r.close(); }
Already done. See issue #71197 ("Wrong encoding for Find & Search") for details.
Marian, I think it can be verified - here are my steps - let me know if it makes sense as regards this fix: - have projects that use both utf-8 and euc-jp project encoding. - find using mbyte characters in each - both projects are found since in this case I think the same characters are valid in euc-jp and utf-8; perhaps some chars not valid in euc that are valid in utf-8 are needed - have a previous j2se project in euc-jp that was changed to iso-8859-1 encoding - in this case the characters are not found now, which makes sense since those characters are not part of the iso-8859-1 charset. ken.frank@sun.com
Ken, your check makes sense. Thank you.
verified.