會員註冊 / 登入  |  電腦版  |  Jump to bottom of page

Developer Forum » Eclipse-Juno: Problem when doing a File-Search on the project JForum

發表人: bender
10 年 前
I loaded the current trunk into my eclipse juno installation. Everything works fine, except when I want to search an expression by a file search (Ctrl-H) using a filter which includes htm files. At the end of the search always an error box appears with following message:

Problems encountered during text search.
File 'jforum/src/main/resources/templates/default/bookmark_insert.htm' has been skipped, problem while reading: ('${encoding}').
${encoding}
File 'jforum/src/main/resources/templates/default/admin/header.htm' has been skipped, problem while reading: ('${encoding}').
${encoding}


I examined these files, the culprit seems to be the meta tag:
<meta http-equiv="Content-Type" content="text/html; charset=${encoding}" />
in it. I even cannot open the file in eclipse itself (complaining the same). But I also found many other htm files which contain the same or a similar meta tag and which I can open without problems in eclipse and which do not seem to have the problem while searching.

Any ideas how to solve this are welcome!


發表人: andowson
10 年 前
You can check the trunk/.settings/org.eclipse.core.resources.prefs and see if there is an encoding setting for the html template file.

#Fri Nov 18 23:23:51 CST 2011

eclipse.preferences.version=1
encoding//src/main/java=UTF-8
encoding//src/main/resources=UTF-8
encoding//src/main/resources/templates/default/admin/admin_index.htm=UTF-8
encoding//src/main/resources/templates/default/admin/admin_welcome.htm=UTF-8
encoding//src/main/resources/templates/default/admin/menu.htm=UTF-8
encoding//src/main/resources/templates/default/header.htm=UTF-8
encoding//src/main/resources/templates/default/install.htm=UTF-8
encoding//src/main/resources/templates/default/install_check_info.htm=UTF-8
encoding//src/main/resources/templates/default/install_error.htm=UTF-8
encoding//src/main/resources/templates/default/install_finished.htm=UTF-8
encoding//src/main/resources/templates/default/list_smilies.htm=UTF-8
encoding//src/main/resources/templates/default/pm_finduser.htm=UTF-8
encoding//src/main/resources/templates/default/pm_review_message.htm=UTF-8
encoding//src/main/resources/templates/default/topic_review.htm=UTF-8
encoding//src/test/java=UTF-8
encoding//src/test/resources=UTF-8
encoding/<project>=UTF-8

發表人: bender
10 年 前
Thanks. This helped. Thanks a lot.

I added the culprit files to this settings. Maybe you should update the file in trunk:

#Fri Nov 18 23:23:51 CST 2011
eclipse.preferences.version=1
encoding//src/main/java=UTF-8
encoding//src/main/resources=UTF-8
encoding//src/main/resources/templates/default/admin/admin_index.htm=UTF-8
encoding//src/main/resources/templates/default/admin/admin_welcome.htm=UTF-8
encoding//src/main/resources/templates/default/admin/header.htm=UTF-8
encoding//src/main/resources/templates/default/admin/menu.htm=UTF-8
encoding//src/main/resources/templates/default/bookmark_insert.htm=UTF-8
encoding//src/main/resources/templates/default/header.htm=UTF-8
encoding//src/main/resources/templates/default/install.htm=UTF-8
encoding//src/main/resources/templates/default/install_check_info.htm=UTF-8
encoding//src/main/resources/templates/default/install_error.htm=UTF-8
encoding//src/main/resources/templates/default/install_finished.htm=UTF-8
encoding//src/main/resources/templates/default/list_smilies.htm=UTF-8
encoding//src/main/resources/templates/default/pm_finduser.htm=UTF-8
encoding//src/main/resources/templates/default/pm_review_message.htm=UTF-8
encoding//src/main/resources/templates/default/topic_review.htm=UTF-8
encoding//src/test/java=UTF-8
encoding//src/test/resources=UTF-8
encoding/<project>=UTF-8




會員註冊 / 登入  |  電腦版  |  Jump to top of page