|
| [WD20 , WM20 android] HTTPGetResult() problem |
| Iniciado por guest, 21,ago. 2015 11:27 - 4 respuestas |
| |
| | | |
|
| |
| Publicado el 21,agosto 2015 - 11:27 |
using HTTPGetResult() to get json result . on WD20 , the return result is correct but on WM20-android , mixed of chinese+japanese and other strange character .
How come ? |
| |
| |
| | | |
|
| | |
| |
| Publicado el 21,agosto 2015 - 11:30 |
CCC2,
Android is unicode, and probably you receive this in ANSI.
You can use the functions UnicodeToAnsi and AnsiToUnicode to make the convertion. Or you could use an MyString is ANSI String to receive the HYYPGetResults in.
Danny |
| |
| |
| | | |
|
| | |
| |
| Publicado el 21,agosto 2015 - 18:56 |
Hi Danny,
thanks it work. i confused why on WD20 it work without any conversion but not WM20 |
| |
| |
| | | |
|
| | |
| |
| Publicado el 21,agosto 2015 - 22:19 |
Hi
that's because your windev project is configured to use ANSI strings by default (ie any stirng declared as MyString is String will be ansi), while any android project will be configured by default as UNICODE strings.
The reason for that is that android is a full unicode system, while historically windows/windev was not.
This can be changed in the configuration settings of each project.
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 22,agosto 2015 - 00:39 |
| |
| |
| | | |
|
| | | | |
| | |
|