PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV Mobile 2024
→
fRead returning only hex 1A characters
fRead returning only hex 1A characters
Started by ClaudeHullq, Sep., 13 2022 11:57 AM - 2 replies
Connect yourself…
ClaudeHullq
#1
Registered member
10 messages
Posted on September, 13 2022 - 11:57 AM
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)
info(s) shows a block of Chinese characters
fSaveText(path+"textfile.txt",s)
shows "..." all hex 1A characters
But in simulator mode the correct text is displayed in info(s).
Is this a flaw in Windev or my Android SDK or what?
Report
0
0
csoft
#2
Registered member
9 messages
Posted on September, 29 2022 - 5:51 PM
Same problem with the WM27.
Report
0
0
Rubén Sánchez Peña
#3
Registered member
796 messages
Popularité : +40 (42 votes)
Posted on October, 05 2022 - 12:27 PM
Hi. The Chinese characters may be for using an ANSI string since in Android and IOS the strings are of Unicode type. That's why in the simulator it looks fine, since on the desktop the strings are ANSI by default. What does it look like when using fLoadText instead of using fopen and fread?
Rubén
Report
0
0
→ Go back to WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text