[Lazarus] PAnsiChar to UTF8 issues

Leonardo M. Ramé l.rame at griensu.com
Tue Apr 9 16:11:46 CEST 2013


Hi, I'm working with a "C" shared library that returns a pointer to
char. It's all ok when not using special characters such as "ñ" or
accents, but when I get these, they are replaced by "?" signs.

For example, if I receive an "ñ", the debugger shows this:

lStr := 'A'#209'oranza';

The correct string is:

lStr := 'Añoranza';

What can I do to show accented characters?.

Regards,
-- 
Leonardo M. Ramé
http://leonardorame.blogspot.com




More information about the Lazarus mailing list