Jump to content
Registration disabled at the moment Read more... ×
Sign in to follow this  
Magno

[SOLVED] How to use TNetHTTPClient and posting with special chars (ISO-8859-1)?

Recommended Posts

Hello!

I am trying this:

 

NetHTTPClient1.ContentType := 'application/json; charset=utf-8;';
NetHTTPClient1.AcceptCharSet := 'ISO-8859-1';

NetHTTPClient1.Post(URL, PARAMS, nil, TEncoding.UTF8);

 

To post to an URL. It works, but words like "ação" are being received as "acao".  How correctly I could fix that?

Thank you!

 

EDIT: Missing set UTF8Encode( text )

Edited by Magno
Question solved

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×