Hello,
i got another one:
The code below works fine, but as soon as "mystring" contains Umlauts, an error message complaining about length mismatch occurs.
Error description:
Bytes to be written to the stream exceed the Content-Length size specified.
stream is a binary file object.
Request is a webrequest.
Accordingly to the Helpfile, the binaryfile.new1( , false or true) is set
to true for ASCII and to false for UTF-8:
If i set this to true, no error message occurs ( because there's no mismatch between stream length and content-length anymore), but the Umlauts are coverted to something like "?".So ASCII does not help here.
regards
TWELVE
i got another one:
The code below works fine, but as soon as "mystring" contains Umlauts, an error message complaining about length mismatch occurs.
Request.ContentLength = StrLength("mystring")
...
stream.New1(Request.GetStream,false)
...
stream.WriteBytes (stream.StringToBytes("mystring" ))
Error description:
Bytes to be written to the stream exceed the Content-Length size specified.
stream is a binary file object.
Request is a webrequest.
Accordingly to the Helpfile, the binaryfile.new1( , false or true) is set
to true for ASCII and to false for UTF-8:
ASCII - If false, strings will be encoded using UTF-8 (Unicode) format, otherwise strings will be encoded using ASCII format.
If i set this to true, no error message occurs ( because there's no mismatch between stream length and content-length anymore), but the Umlauts are coverted to something like "?".So ASCII does not help here.
regards
TWELVE