Archived Forum Post

Index of archived forum posts

Question:

download with utf8 encodig

Dec 20 '16 at 07:03

I am using standard http.Download(url, file) to download a text file. On the pc the result is ok, but on the Mac the result is garbled (ANSI?). I tried http.get_Utf8() and http.put_Utf8(true), but no luck.

What must I do to get readable text back on PC and on Mac?

-Pim


Answer

I found a work-around:

CkString html; html = http.quickGetStr(url));

String printString; printString = html.getString();