[Logo] JForum - Powering Communities
  [Search] 搜尋   [Recent Topics] 最新主題   [Hottest Topics] 熱門主題   [Top Downloads] 熱門下載   [Groups] 回首頁 
[Register] 會員註冊 /  [Login] 登入 


JForum 2.8.3 is out with various fixes and improvements. Read all about it here

Eclipse-Juno: Problem when doing a File-Search on the project JForum RSS feed
討論區首頁 » Developer Forum
發表人 內容
bender


註冊時間: 2013/10/25
文章: 11
離線
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


註冊時間: 2011/6/30
文章: 250
離線
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


註冊時間: 2013/10/25
文章: 11
離線
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
 
討論區首頁 » Developer Forum
前往:   
行動版
Powered by JForum 2.8.3 © 2023 JForum Team • Maintained by Andowson Chang and Ulf Dittmer