FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 25
→
Problemas com acentuação como resolver
Problemas com acentuação como resolver
Débuté par Boller, 28 mar. 2024 00:02 - Aucune réponse
Connectez-vous…
Boller
#1
Membre enregistré
3 659 messages
Popularité : +175 (223 votes)
Posté le 28 mars 2024 - 00:02
Segue detalhes abaixo
Vc tem que saber o tipo que vc está recebendo
Tem 4 tipos
UTF8
Unicode
Ansi
Html
Sendo eles:
StringToUtf8
https://doc.windev.com/en-US/…
Utf8ToString
https://doc.windev.com/en-US/…
Utf8ToAnsi
https://doc.windev.com/en-US/…
Utf8ToUnicode
https://doc.windev.com/en-US/…
AnsiToUnicode
https://doc.windev.com/en-US/…
UnicodeToAnsi
https://doc.windev.com/en-US/…
AnsiToOem
https://doc.windev.com/en-US/…
OemToAnsi
https://doc.windev.com/en-US/…
Utf8valid
https://doc.windev.com/en-US/…
UtfConvert
https://doc.windev.com/en-US/…
Outros comandos String
https://doc.windev.com/en-US/…
Outras informações
https://doc.windev.com/en-US/…
Tabela AscII
https://www.ascii-code.com/pt
Com o utfcovert e utf8valid que tem na versão 29/2024 pode identificar o tipo e aplicar um switch case de conversão e aplicar uma dessas funções
Lembrando que tem o
UTF8, UTF16 e UTF32
Exemplo
IF UTF8Valid(sUTF8) THEN
// Yes => Convert to UNICODE
sUNICODE is UNICODE string = UTF8ToString(sUTF8)
...
END
https://doc.windev.com/en-US/…
PARA RESOLVER PROBLEMAS DE ACENTUAÇÃO
Prezados,
Caso de problema com acentuação, use:
retorno is string = UFT8toString(textocomacento)
USE O COMANDO UTF8ToString OU AnsiToUnicode
Procedure WS_Android_IOS_HTTPGetResult()
// Variable
bufResHTTP is Buffer
sHTTPResult is string
// Retrieves the result of the query
bufResHTTP=HTTPGetResult(httpResult)
// Result in UTF8 em iOS Apple
If IniOSMode() =True OR IniOSSimulatorMode() =True OR IniOSEmulatorMode() =True
IF StringCount(bufResHTTP, “ISO-8859-1”,IgnoreCase) =0
sHTTPResult=UTF8ToString(bufResHTTP)
ELSE
sHTTPResult=AnsiToUnicode(bufResHTTP)
END
ELSE IF inAndroidMode() =True OR InAndroidSimulatorMode() =True OR InAndroidEmulatorMode() =True
// Result in Android
sHTTPResult=bufResHTTP
END
RESULT sHTTPResult
Busca fonética
https://doc.windev.com/en-US/…
--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Signaler
0
0
→ Revenir à WINDEV 25
WINDEV 25
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte