jpcima / smf-dsp

Advanced MIDI file player
Boost Software License 1.0
47 stars 5 forks source link

Text with special characters #8

Closed jpcima closed 4 years ago

jpcima commented 4 years ago

The path to the right of the FILE: label cannot display a special character, because the font does not have it. (eg É)

In this case of unmatched character, make the unicode decomposition, and pick the non-accented character as replacement.

jpcima commented 4 years ago

Solution: normalize to NFD or NKFD and pick the first character of the conversion.

I think, I'll make all platforms depend of the ICU, since it facilitates all the work with unicode, and not force to depend on dumb fallbacks or OS-dependent.