moumar/ruby-mp3info — pull request #14 by chab (2012-04-01 16:00:18+00:00)
Title: convert to utf-16 little endian (instead of big) for more compatibility

utf-16 "Little Endian" is to be more compatible than than "Big Endian" on Windows Media Player & older Quicktime.

Big Endian (as used in ruby-mp3info 0.7) is acting weird on some "older" players. Repro:

- encode TIT2 'hello€' in an mp3 id3s using gem 0.7.
- open it on OS X Snow Leopard's quicktime, and view infos (cmd+i), it shows chinese chars (as a screenshot submitted last week in "issues")
- open it on an older Windows Media Player (i did on a old Vista's standard WMP) : it can't even play the audio.

3 tested softwares encoding in utf-16 (iTunes, WMP & "id3 editor") encodes id3 in little endian. That confirmed the change. This is fixing the issue for us, hope it will for others!

Many thanks for this great lib,
Chab