[Lazarus] Replacing accented letters

Ondrej Pokorny lazarus at kluug.net
Fri Oct 13 15:41:26 CEST 2017


On 13.10.2017 15:32, Koenraad Lelong via Lazarus wrote:
> Op 11-10-17 om 17:45 schreef Ondrej Pokorny via Lazarus:
>> On 11.10.2017 17:31, Koenraad Lelong via Lazarus wrote:
>>> Software is intended for Windows.
>>
>> In this case you may use WinAPI as well: 
>> https://stackoverflow.com/a/1892432/1231269
>>
>> Ondrej
>
> On that page there are two pieces of code, I tried them both.
> One, OStripAccents, does not work, it returns te same string (AFAIK).

OStripAccents is Delphi 2009+ only.

> The other, BestFit, can't compile because WideCharToMultiByte is not 
> recognized. Does FPC have WideCharToMultiByte ? I searched the RTL (of 
> FPC 3.0) but I can't find it. I googled, but no relevant answer.

Add Windows to your uses clause.

Ondrej


More information about the Lazarus mailing list