How do I convert Windows 7 file-name encoding to UTF-8 for Ruby on Rails?
- by Reilly
Hi
(Ive looked at the other questions - none seemed to quite fit my problem.)
I have some file-names under Windows 7 that need to be translated in to MySQL database (UTF-8) with Ruby on Rails.
An example file-name includes "íéó" in some kind of Windows 7 file-system encoding.
Ive tried many combinations of gsub and ActiveSupport::Multibyte::Chars.
Thanks for the help