X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/334c8560217cd20ae5ef74aa43dc1a934d3ae6f8..64af2816a3f788c360434a73a234d41ef4c9f66e:/app/controllers/api/user_preferences_controller.rb diff --git a/app/controllers/api/user_preferences_controller.rb b/app/controllers/api/user_preferences_controller.rb index 02a23095a..99d224c51 100644 --- a/app/controllers/api/user_preferences_controller.rb +++ b/app/controllers/api/user_preferences_controller.rb @@ -66,7 +66,7 @@ module Api pref.k = params[:preference_key] end - pref.v = request.raw_post.chomp + pref.v = request.raw_post.chomp.force_encoding("UTF-8") pref.save! render :plain => ""