PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → UNICODE problem?
UNICODE problem?
Débuté par VEGEboss, 17 sep. 2019 09:56 - 3 réponses
Membre enregistré
88 messages
Popularité : +2 (2 votes)
Posté le 17 septembre 2019 - 09:56
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?
Membre enregistré
88 messages
Popularité : +2 (2 votes)
Posté le 17 septembre 2019 - 09:57
oh, sorry: I'm using Windev Mobile 24 and the project is for the Android environment
Membre enregistré
794 messages
Popularité : +40 (42 votes)
Posté le 17 septembre 2019 - 14:29
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
Membre enregistré
88 messages
Popularité : +2 (2 votes)
Posté le 17 septembre 2019 - 15:25
yes, the file is normally created via NotePad++