|
| HTTPRequest in WM19 (wrong characters?) |
| Iniciado por guest, 29,oct. 2014 10:17 - 2 respuestas |
| |
| | | |
|
| |
| Publicado el 29,octubre 2014 - 10:17 |
Hello,
When i use this code in WM19
Httperror is string sHtmlstring is string
bResStart is boolean = HTTPRequest("<a class="ExternalLink" rel="nofollow" target="_blank" href="http://XXXXXXXXXX.php">http://XXXXXXXXXX.php</a>","", "", "", "", "user", "password")
IF bResStart THEN sHtmlstring= HTTPGetResult(httpResult) ToastDisplay("Ready") ELSE Httperror = HTTPGetResult(httpHeader) ToastDisplay("Error reading server...: "+Httperror) END
In WM i get all kind of chinese characters In WD i get the correct XML code
Any thoughts?
Regards, John |
| |
| |
| | | |
|
| | |
| |
| Publicado el 29,octubre 2014 - 11:53 |
Hi John,
could this be an UNICODE problem ?
In WD19, I believe in new projects, string (without specification) are standard treated as UNICODE strings. May be the same in WM19. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 29,octubre 2014 - 12:03 |
Thanks Stefan,
yes, when i use AnsiToUnicode(HTTPGetResult etc.) it works fine!
Regards, John |
| |
| |
| | | |
|
| | | | |
| | |
|