How do I convert Windows 7 file-name encoding to UTF-8 for Ruby on Rails?

Posted by Reilly on Stack Overflow See other posts from Stack Overflow or by Reilly
Published on 2010-05-03T07:58:34Z Indexed on 2010/05/03 8:08 UTC
Read the original article Hit count: 402

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

© Stack Overflow or respective owner

Related posts about windows-7

Related posts about ruby-on-rails