Encoding Error Page can't be loaded because of an encoding error.
Hi, I cloned a repo from https://github.com/easemob/sdk-ios-cocoapods.git, when I search "log" in this repo, it showed,
"500 Encoding Error Page can't be loaded because of an encoding error."
Search other content also showed the same error. My gitlab version is 7.8.4-omnibus
and the error log
Started GET "/search?utf8=%E2%9C%93&search=log&group_id=&project_id=72&search_code=true&repository_ref=" for 127.0.0.1 at 2015-03-25 12:24:34 +0800
Started GET "/search/autocomplete?project_id=72&project_ref=&term=log" for 127.0.0.1 at 2015-03-25 12:24:34 +0800
Processing by SearchController#show as HTML
Processing by SearchController#autocomplete as JSON
Parameters: {"project_id"=>"72", "project_ref"=>"", "term"=>"log"}
Parameters: {"utf8"=>"✓", "search"=>"log", "group_id"=>"", "project_id"=>"72", "search_code"=>"true", "repository_ref"=>""}
Completed 200 OK in 188ms (Views: 0.3ms | ActiveRecord: 15.2ms)
*** /var/log/gitlab/nginx/gitlab_access.log ***
192.168.199.23 - - [25/Mar/2015:12:24:34 +0800] "GET /search/autocomplete?project_id=72&project_ref=&term=log HTTP/1.1" 200 33 "http://git.example.com/search?utf8=%E2%9C%93&search=log&group_id=&project_id=72&search_code=true&repository_ref=" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.76 Safari/537.36"
*** /var/log/gitlab/gitlab-rails/production.log ***
Encoding::CompatibilityError (incompatible character encodings: UTF-8 and ASCII-8BIT):
app/views/search/show.html.haml:23:in `block in _app_views_search_show_html_haml__2069069934658697367_109844740'
app/views/search/show.html.haml:1:in `_app_views_search_show_html_haml__2069069934658697367_109844740'
Completed 500 Internal Server Error in 14268ms (Views: 11.1ms | ActiveRecord: 20.8ms)
*** /var/log/gitlab/nginx/gitlab_access.log ***
192.168.199.23 - - [25/Mar/2015:12:24:48 +0800] "GET /search?utf8=%E2%9C%93&search=log&group_id=&project_id=72&search_code=true&repository_ref= HTTP/1.1" 500 4131 "http://git.example.com/search?utf8=%E2%9C%93&search=log&group_id=&project_id=72&search_code=true&repository_ref=" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.76 Safari/537.36"
*** /var/log/gitlab/gitlab-rails/production.log ***
Started GET "/uploads/user/avatar/3/avantar.png" for 127.0.0.1 at 2015-03-25 12:24:48 +0800
Processing by UploadsController#show as HTML
Parameters: {"model"=>"user", "mounted_as"=>"avatar", "id"=>"3", "filename"=>"avantar.png"}
Sent file /opt/gitlab/embedded/service/gitlab-rails/public/uploads/user/avatar/3/avantar.png (0.1ms)
Completed 200 OK in 23ms (ActiveRecord: 4.4ms)
*** /var/log/gitlab/nginx/gitlab_access.log ***
192.168.199.23 - - [25/Mar/2015:12:24:48 +0800] "GET /uploads/user/avatar/3/avantar.png HTTP/1.1" 200 54617 "http://git.example.com/search?utf8=%E2%9C%93&search=log&group_id=&project_id=72&search_code=true&repository_ref=" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.76 Safari/537.36"