Quantcast
Channel: Active questions tagged utf-8 - Stack Overflow
Viewing all articles
Browse latest Browse all 1069

incompatible character encodings: UTF-8 and ASCII-8BIT in render action

$
0
0

ActionView::Template::Error (incompatible character encodings: UTF-8 and ASCII-8BIT): app/controllers/posts_controller.rb:27:in `new'

  # GET /posts/new  def new    if params[:post]      @post = Post.new(post_params).dup      if @post.valid?        render :action => "confirm"      else        format.html { render action: 'new' }        format.json { render json: @post.errors, status: :unprocessable_entity }      end    else      @post = Post.new      @document = Document.new      @documents = @post.documents.all      @document = @post.documents.build    end

I don't know why it is happening.


Viewing all articles
Browse latest Browse all 1069

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>