hello
wondering if anyone could help me please!
i am trying to format a string ("artist") and remove all the accented characters (in fact, replace them with a substring - in the example below, "z".
But my code below does not seem to work properly. There are numerous resources online on how to do this but they are all for delphi and do not work in lazarus?
thanks for any assistance!
var
artist: string;
examine: char;
q: integer;
begin
for q := 1 to length(artist) do
begin
examine := artist[q];
if ord(examine) > 127 then
stringreplace(artist, artist[q], 'z',[rfReplaceAll]);
end;
end