Ok yes, the function name UnicodeToUtf8 is unfortunately used in both FPC's libs and in Lazarus LazUtils package LazUTF8 unit. It will cause confusion also in the future. Juha