Delphi ActiveX
Delphi ActiveX
Remove Accent Marks from Chars in String
Removes the accent marks from Latin and Central European chars in a string.Note: The RemoveAccents method was added in Chilkat v9.5.0.91. This example requires Chilkat v9.5.0.91 or greater.
Chilkat Delphi ActiveX Downloads
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Chilkat_TLB;
...
procedure TForm1.Button1Click(Sender: TObject);
var
success: Integer;
s: WideString;
sb: TChilkatStringBuilder;
begin
success := 0;
s := 'Números para Mí (Student Edition, Spanish)';
sb := TChilkatStringBuilder.Create(Self);
success := sb.Append(s);
sb.RemoveAccents();
Memo1.Lines.Add(sb.GetAsString());
// Output:
// Numeros para Mi (Student Edition, Spanish)
end;