-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TIdHTTPResponseInfo.WriteContent improperly uses IOHandler.Write method #499
Comments
This is not really a bug, IMHO. In non-Unicode builds, The The If you want to send a |
Thank you very much! That helped. Some notes:
|
Why not simply set the
If you are going to write a custom wrapper, I would suggest allowing the caller configure the encoding as needed, eg:
Indy defines the Otherwise, Indy uses FreePascal's own
Or:
|
Everything goes as usual - all bugs are yours, if you think you found a bug in an outer library go back to the start of the phrase. Thanks! |
TIdHTTPResponseInfo.WriteContent
usesIOHandler.Write
in two places and in both of them incorrectly. It causes wrong message encoding in Lazarus under Linux (unitIdCustomHTTPServer
)Now it is (line 2188) :
FConnection.IOHandler.Write(ContentText, CharsetToEncoding(CharSet));
Should be:
FConnection.IOHandler.Write(ContentText, CharsetToEncoding(CharSet){$IFDEF STRING_IS_ANSI}, CharsetToEncoding(CharSet){$ENDIF});
Now it is (line 2213) :
Should be:
The text was updated successfully, but these errors were encountered: