왜이 오류가 발생합니까? 에서 이미지를로드하기위한UTF-8에서 유효하지 않은 바이트 시퀀스가 나타나는 이유
invalid byte sequence in UTF-8
:
= image_tag 'features_home/show1.png'
편집
내가 bundle update
을 한 후이 문제는 발생했음을 통지를했습니다는 오류가 .. 모든 이미지 발생 I 여기에 세부 정보를 추가하려고합니다 :
Stacktrace :
Rendered home/home.html.haml within layouts/application (229.9ms)
Completed 500 Internal Server Error in 1047ms
invalid byte sequence in UTF-8 excluded from capture: DSN not set
ActionView::Template::Error (invalid byte sequence in UTF-8):
81: /Carousel items
82: .carousel-inner
83: .active.item
84: = image_tag 'features_home/show1.png'
85: -#.carousel-caption
86: -# %h4
87: -# %p
app/views/home/home.html.haml:84:in `block in _app_views_home_home_html_haml__623651309533727079_70331260863620'
app/views/home/home.html.haml:33:in `_app_views_home_home_html_haml__623651309533727079_70331260863620'
lib/rack/seoredirect.rb:20:in `call'
Rendered /Users/Apple/.rvm/gems/[email protected]/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (115.6ms)
Rendered /Users/Apple/.rvm/gems/[email protected]/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (23.1ms)
Rendered /Users/Apple/.rvm/gems/[email protected]/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.7ms)
Rendered /Users/Apple/.rvm/gems/[email protected]/gems/actionpack-4.2.0/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (237.9ms)
Gemfile.lock 전 bundle update
후 : https://gist.github.com/hopewise/35c2a98b13ac646b65770feb2f3c7ec8
전체 추적 : 그래도 난 문제를 일으킨 보석 모르는 https://gist.github.com/hopewise/551169518a5938647dc767d3de393cd4
..
아마도 이와 관련이 있습니다. https://stackoverflow.com/questions/2982677/ruby-1-9-invalid-byte-sequence-in-utf-8 –
숨겨진 제어 문자를 사용할 수 있습니까? 파일 소스 파일? 줄을 삭제하고 수동으로 다시 입력 해보십시오. – Myst
@Myst 소스 파일에 숨겨진 제어 문자가 없습니다 .. – simo