PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 27 → fRead only returning hex 1A characters in Android
fRead only returning hex 1A characters in Android
Débuté par ClaudeHullq, 13 sep. 2022 11:50 - 1 réponse
Membre enregistré
10 messages
Posté le 13 septembre 2022 - 11:50
Using Windev Mobile 27 in an Android app:

nFid is int = fOpen(gsPath+"textfile.txt",foAnsi+foRead)
fSeek(nFid,0,fpBeginning)
s is ANSI string = fRead(nFid,100)

s = "..." all hex 1A characters

But in simulator mode the correct text is returned. Is this a flaw in Windev or my Android SDK or what?
Membre enregistré
44 messages
Popularité : +2 (2 votes)
Posté le 12 décembre 2022 - 10:28
Hi Claude,
Android configuration sets "Use Unicode strings at runtime" as default.
You have to set to ANSI strings, or use unicode everywhere, or use some ansi to unicode conversion functions (and viceversa)

Hope this helps
Andrea