GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WINDEV Mobile 2024
→
fRead returning only hex 1A characters
fRead returning only hex 1A characters
Iniciado por ClaudeHullq, set., 13 2022 11:57 AM - 2 respostas
Conecte-se…
ClaudeHullq
#1
Membro registado
10 mensagems
Publicado em setembro, 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?
Denunciar
0
0
csoft
#2
Membro registado
9 mensagems
Publicado em setembro, 29 2022 - 5:51 PM
Same problem with the WM27.
Denunciar
0
0
Rubén Sánchez Peña
#3
Membro registado
797 mensagems
Popularité : +40 (42 votes)
Publicado em outubro, 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
Denunciar
0
0
→ Voltar para WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto