Create Wiki failed into Error 500 in Gitlab 8.5.2
the error happens both on gitlab version 8.4.2 and 8.5.2.
the details:
- create wiki pages for newly create project , it can be successful with error
- when create wiki pages for old project which created at gitlab version<8,with another differnet switch back from external wiki to gitlab wiki, it fails in 500 error, with following error[gitlab-rails application log]:
Processing by ProjectsController#markdown_preview as JSON
Parameters: {"text"=>"23ds", "namespace_id"=>"resys_pe", "id"=>"HRM"}
Started POST "/resys_pe/HRM/wikis" for 127.0.0.1 at 2016-03-03 13:50:57 +0800
Processing by Projects::WikisController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"[FILTERED]", "wiki"=>{"title"=>"23", "format"=>"md", "content"=>"23ds", "message"=>""}, "namespace_id"=>"resys_pe", "project_id"=>"HRM"}
Completed 200 OK in 149ms (Views: 0.7ms | ActiveRecord: 8.7ms)
Encoding::CompatibilityError (incompatible character encodings: UTF-8 and ASCII-8BIT):
app/models/project_wiki.rb:93:in `create_page'
app/models/wiki_page.rb:179:in `save'
app/models/wiki_page.rb:139:in `create'
app/controllers/projects/wikis_controller.rb:60:in `create'
Completed 500 Internal Server Error in 136ms (Views: 17.1ms | ActiveRecord: 10.6ms)