Welcome! Log In Create A New Profile

Advanced

[WDM25] - Converting UNICODE

Posted by JP 
JP
[WDM25] - Converting UNICODE
December 09, 2020 05:55PM
Hi All

Using WinDev Mobile 25

I have a test app which calls a web URL e.g. www.mydomain.com

I use HTTPRequest() for that.

I then use HTTPGetResult() to get the contents of the HTTP request.

When I display this content (e.g using INFO() ) I get all strange characters.

if I save this returned content using fsavetext() and then read that saved file back using floadtext() then the plain readable text is viewable.

How can I convert the unreadable content from HTTPGetResult() directly into readable text?

I have tried UnicodeToAnsi() but that does not work.

[UPDATE] - Found the solution. I need to use UTF8ToString() function and it works now.



Edited 2 time(s). Last edit at 12/09/2020 07:26PM by JP.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: