
procedure DecodeValue(InputText: Text): Text
begin
exit(InputText.Replace('_x0020_', ' '));
end;
There is more info on Encoding here: TextEncoding property - Business Central | Microsoft Learn and File handling and text encoding - Business Central | Microsoft Learn