FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV (précédentes versions)
→
XMLOpen complaining about invalid UTF-8 Character
XMLOpen complaining about invalid UTF-8 Character
Débuté par Malc, 12 aoû. 2022 15:38 - 1 réponse
Connectez-vous…
Malc
#1
Membre enregistré
7 messages
Popularité : +1 (1 vote)
Posté le 12 août 2022 - 15:38
Hi All
OK. processing an XML string with XMLOpen which fails with:
The XML document has not been loaded.
System Error Details: Row 172, Column 55: Input is not proper UTF-8, indicate encoding !
Bytes: 0xE9 0x5B 0x32 0x30
Tracked this down to a description that has é in it. Changed this to unaccented e and works fine.
However, the accented character is part of the UTF-8 character set!
ANy thoughts?
Malcolm
Using WD23
Signaler
0
0
JEMA
#2
Membre enregistré
4 messages
Posté le 04 novembre 2022 - 09:00
Few separate issues here; first, in an XML file, a & character meant as a literal ampersand should be escaped as &
Second, mb_detect_encoding is not doing what you think it is there. Try mb_check_encoding or better yet actually convert all input to UTF-8 (since there is no character latin1 can represent which UTF-8 can't) and then process it.
Signaler
0
0
→ Revenir à WINDEV (précédentes versions)
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
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