On 13/03/14 09:29, Michael Schnell wrote: > On 03/12/2014 07:08 PM, silvioprog wrote: >> >> It is not hard to allow chars like "ã", "Ã", "ñ", "Ñ", "ç", "Ç", "ä", "Ä" >> etc. I left the function a little faster too: >> > ???? > > These beasts in UTF-8 are not "char" s (but multi-Byte codes) so your example > code "c: char" ... will not work :-( . > > -Michael >
He converts to PChar, then checks byte values, not characters. (see the second message where he rectifies it a bit). -L. -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus