Skip to content

Commit

Permalink
fixed: TIdSoapWriter.CheckForBadCharacters raises an error when retur…
Browse files Browse the repository at this point in the history
…ning parameter value contain Unicode characters

`Ord` returns character code. but for Unicode chars it's size more than
byte.
  • Loading branch information
ashumkin committed Jan 26, 2015
1 parent a16ac7b commit 22f3c2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/IdSoapRpcPacket.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1954,7 +1954,7 @@ procedure TIdSoapWriter.CheckForBadCharacters(const AString, AName, ARoutine: St
const ASSERT_LOCATION = ASSERT_UNIT+'.TIdSoapWriter.CheckForBadCharacters';
var
I: Integer;
LOrd: Byte;
LOrd: Word;
begin
Assert(self.TestValid(TIdSoapWriter), ASSERT_LOCATION + ': Self is invalid');

Expand Down

0 comments on commit 22f3c2c

Please sign in to comment.