musescore/MuseScore — pull request #494 by trig-ger (2013-09-29 20:06:31+00:00)
Title: Automatic charset detection for MIDI import

The functionality for the program initial guess of the encoding of the MIDI file.
The results of automatic detection are partially positive. Longer the text (lyrics, staff names) - more accurate charset detection.

Japanese lyrics:
https://docs.google.com/file/d/0B5alKuFoSol2ZTB5MnhFUXp6ZVE/edit?usp=sharing

Russian staff name:
https://docs.google.com/file/d/0B5alKuFoSol2TGE4Y25veDl4Yk0/edit?usp=sharing

The results on Windows are the same:

https://docs.google.com/file/d/0B5alKuFoSol2RklyUnBTNmdDXzQ/edit?usp=sharing
https://docs.google.com/file/d/0B5alKuFoSol2NkRJUTFRRlVTZkE/edit?usp=sharing

***
The code of the detector was downloaded from here:
https://code.google.com/p/uchardet/

It is based on the 'universalchardet', the encoding detector library of Mozilla.

The original Mozilla core code is located here:
http://lxr.mozilla.org/mozilla/source/intl/chardet/

The licence is Mozilla Public License 1.1.
The code was put into the thirdparty/universalchardet dir.