Hi all,
Not sure if this is a bug, but I'm seeing some strange behaviour with
encodeURLElement on the latest build from source.
See attached file url.pas.
I'm using Debian 12.
Regards,
David Connolly
{$mode delphi}
{$H+}
{$codepage utf8}
program url;
uses
cwstring,
fphttpclient;
var
ansi : ansiString = 'Hello ANSI World!';
uni : unicodeString = 'Hello UNICODE World!';
utf8 : UTF8String = 'Hello UTF8 World!';
raw : RawByteString = 'Hello RAW World!';
begin
writeln( 'lit = ', 'Hello LITERAL World!' );
writeln( 'lit = ', encodeURLElement( 'Hello LITERAL World!' ) );
writeln( '' );
writeln( 'ansi = ', ansi );
writeln( 'ansi = ', encodeURLElement( ansi ) );
writeln( '' );
writeln( 'unicode = ', uni );
writeln( 'unicode = ', encodeURLElement( uni ) );
writeln( '' );
writeln( 'uft8 = ', utf8 );
writeln( 'uft8 = ', encodeURLElement( utf8 ) );
writeln( '' );
writeln( 'raw = ', raw );
writeln( 'raw = ', encodeURLElement( raw ) );
writeln( '' );
end.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal