From 0f5707394b667a5e9420cda8e88ea118c05244d2 Mon Sep 17 00:00:00 2001 From: devin Date: Mon, 6 Aug 2012 22:11:36 +0800 Subject: [PATCH] encoding fixed Maybe there are some "chinese" in galleryAPI.js.erb and Ruby treat them all US-ASCII, so everything crash. see this post "http://stackoverflow.com/questions/7761540/encoding-issues-in-javascrip t-files-using-rails-asset-pipeline" --- .../gallery/app/assets/javascripts/galleryAPI.js.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/vendor/built_in_modules/gallery/app/assets/javascripts/galleryAPI.js.erb b/vendor/built_in_modules/gallery/app/assets/javascripts/galleryAPI.js.erb index 8c9c8d37d..4feb3d035 100644 --- a/vendor/built_in_modules/gallery/app/assets/javascripts/galleryAPI.js.erb +++ b/vendor/built_in_modules/gallery/app/assets/javascripts/galleryAPI.js.erb @@ -1,3 +1,4 @@ +<%# encoding: utf-8 %> var galleryAPI = function(){ g = this; this.urlVars = rcom.getUrlVars();