Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Product.where("service_id = 2 AND id > 380093").each do |pr|
- begin
- pr.description = pr.description.encode('ISO8859-1').force_encoding('UTF-8')
- pr.title = pr.title.encode('ISO8859-1').force_encoding('UTF-8')
- pr.save
- rescue
- next
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement