UTF-8 routines are in the package lazutils in the unit lazutf8 in Lazarus 0.9.31+ If you don' t need 0.9.30 compatibility you can use this package instead of lclbase/lcl -- Felipe Monteiro de Carvalho