Hi !
I've seen your message and i'm very surprising when you say that you use 'fpc' (freePascal). Just for your consideration i've found a good compiler more professional that fpc..
so go
and you 'll be surprise to use a compiler whose accept 'é' in your program for example sur.
for you question on Perl module, i'm sorry i don't know how to do your thing..good luck !