I must be doing something dumb (extended ascii) lazarus / 13-General ---------------------------------------------------------------------- andrew.higgs · 2008-06-05 18:07 Hi all, I have a program which has a form to assist people in selecting some "special" characters. They are all in the extended ascii range from 192 to 255. This used to work : Code: [Select]   k := 192;   for i := 0 to 7 do     for j := 0 to 7 do       begin         sgSpecial.Cells[i,j] := char(k);         k := k + 1;       end; but for some or other reason it does not seem to work anymore. Is there another way to get these displayed? I can't seem to display any characters above 127 from within a pascal application. I am on Ubuntu 8.04 and  everything else seems to be capable of displaying all these characters. FPC is version 2.2.0. Lazarus is at svn 15209M. Can't compile the latest version. It says the following: Code: [Select] lazarus/designer/jitforms.pp(888,11) Error: identifier idents no member "Clear" Any assistance would be greatly appreciated. Regards Andrew Higgs ---------------------------------------------------------------------- Leledumbo · 2008-06-06 07:20 What's the type of k? If it's shortint then of course you can't display above 127 as it's the upper limit of shortint. Try using byte. I don't know whether char(an_integer) and chr(an_integer) give the same result, try using chr if it still doesn't work. ---------------------------------------------------------------------- theo · 2008-06-06 08:45 Try sgSpecial.Cells[i,j] := UTF8Encode(Char(k)); ---------------------------------------------------------------------- andrew.higgs · 2008-06-06 16:15 Thanks Theo and Leledumbo, char(int), chr(int, char(byte) and chr(byte) all don't work in this instance. UTF8Encode(Char(int)) did the trick. Thanks for the responses. I appreciate the assistance. Regards Andrew Higgs ---------------------------------------------------------------------- felipemdc · 2008-06-07 22:42 Lazarus migrated to unicode. That is what probably cause your problem. There is extended information about unicode support in the wiki. ---------------------------------------------------------------------- pfergiu · 2011-04-04 13:12 Hi everybody, I've tried to use the convertionUTF8Encode(Char(int)) you mentioned, but I still have problems with certain characters, more precisely those in range 127..160. I wish to draw boxes in text mode to take advantage of old programs I wrote in DOS many years ago. ¿Do you have any idea how I can show those characters in a Linux terminal? Thanks a lot, pfergiu ---------------------------------------------------------------------- circular · 2011-04-04 14:51 Are you talking about B0-DF range of code page 437 ? http://en.wikipedia.org/wiki/Code_page_437 ---------------------------------------------------------------------- pfergiu · 2011-04-04 18:19 Yes, exactly... those chars...