Free Vision UTF-8 adoption
Free Vision has already been ported to Unicode in Free Pascal. So it's probably better to use official implementation (see units with names starting with "u").
Here is an attempt to adopt Free Vision TUI library from Free Pascal from using 1-byte character encodings to UTF-8 on Linux.
Current state: test app builds, runs and is able to show its interface properly. All controls of test app are working (text editor needs some improvements though, but is already able to properly display utf-8 encoded text opened from file).
fpc testapp.pas
License: Free Pascal's one (LGPL-with-exception).
Some notes on adoption process (in Russian). Related Free Pascal issue. You may also be interested in another effort of Free Vision unicode adoption, that is integrated to the main Free Vision branch.
See also: C++ Turbo Vision UTF-8 adoption.