FOROS PROFESIONALES
WINDEV
,
WEBDEV
y
WINDEV Mobile
Inicio
|
Mensajes recientes
|
Conéctese...
|
Desconectar
|
Español
Inicio
→
WINDEV (versiones precedentes)
→
XMLOpen complaining about invalid UTF-8 Character
XMLOpen complaining about invalid UTF-8 Character
Iniciado por Malc, 12,ago. 2022 15:38 - 1 respuesta
Conéctese…
Malc
#1
Miembro registrado
7 mensajes
Popularité : +1 (1 vote)
Publicado el 12,agosto 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
Informar
0
0
JEMA
#2
Miembro registrado
4 mensajes
Publicado el 04,noviembre 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.
Informar
0
0
→ Volver a WINDEV (versiones precedentes)
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versiones precedentes)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Búsqueda Tipo
Sólo temas
Todos los mensajes
Periodo Buscar
Cualquier fecha
Última hora
Última 24 horas
Última semana
Último mes
Último año
Cancelar
Vista previa del mensaje
Añadiendo una imagen
Importar una imagen desde una URL
Enviar una imagen desde un archivo de su disco
Arrastrar un archivo o click en "Examinar..."
o
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto