https://github.com/tb/recode_legacy_database
change encoding fields on read and before write to database
https://github.com/tb/recode_legacy_database
Last synced: about 1 year ago
JSON representation
change encoding fields on read and before write to database
- Host: GitHub
- URL: https://github.com/tb/recode_legacy_database
- Owner: tb
- Created: 2010-05-06T20:08:38.000Z (about 16 years ago)
- Default Branch: master
- Last Pushed: 2010-05-06T20:48:59.000Z (about 16 years ago)
- Last Synced: 2025-04-28T01:45:56.938Z (about 1 year ago)
- Language: Ruby
- Homepage:
- Size: 86.9 KB
- Stars: 10
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
== Overview
Plugin makes it easy to change database text field encoding on read and before write to database (recode it on fly).
Typical usage scenario is when you have UTF-8 Rails application and legacy database that is not UTF-8 encoded.
Originally published here http://www.ruby-forum.com/topic/122881#910282
== Usage
recode_legacy_database :from => "ISO-8859-1", :to => "UTF-8"
== License
Public domain. Please put watch at github.com if you like it :)
* Tomasz Bak [ t.bak@selleo.com ]