Skip to content

fix EncodeURLElement string types

Ondrej Pokorny requested to merge fpc-ondrej/source:EncodeURLElement_fix into main

EncodeURLElement is wrong after Unicode/Ansi changes. It mixed PChar with UnicodeString.

I assume the original function should have stayed with AnsiString and the UnicodeString overload should have been added with UTF8Decode/UTF8Encode as DecodeURLElement is written.

I tested the commit and it looks fine.

Commits that broke EncodeURLElement: 885a265e and 1f74ca0d

Merge request reports