PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV Mobile 2024 → UNICODE problem?
UNICODE problem?
Iniciado por VEGEboss, set., 17 2019 9:56 AM - 3 respostas
Membro registado
88 mensagems
Publicado em setembro, 17 2019 - 9:56 AM
hello folks

please consider this simple WLanguage code:

sList is ANSI string
sList = fLoadText("config.txt")

and this is the content (a VERY simple ASCII text) of the config.txt file:

configuration 1
user name
crypted password
user folder
user level
other lines


BUT... the content of the sList variable is the one you can see in the image below.





What the hell is happening?
Membro registado
88 mensagems
Publicado em setembro, 17 2019 - 9:57 AM
oh, sorry: I'm using Windev Mobile 24 and the project is for the Android environment
Membro registado
909 mensagems
Publicado em setembro, 17 2019 - 2:29 PM
Hi. The default return type of fLoadText is STRING, and in WM default STRING type is STRING UNICODE. How did you create the text file? Are you sure the content is ANSI?

Rubén
Membro registado
88 mensagems
Publicado em setembro, 17 2019 - 3:25 PM
yes, the file is normally created via NotePad++