Jump to content
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×