In my controller I have:
def index
@title = 'asdsadas'
@kategoris = Tag.where("name like ?", "%#{params[:q]}%")
respond_to do |format|
format.html
format.json { render :json => @kategoris.map(&:attributes) }
end
end
I created a monkey patch as the answer to this question: JSON encoding wrongly escaped (Rails 3, Ruby 1.9.2)
But the JSON has still not the correct encoding example:
Delta i t��vlingar f��r biljetter