GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WINDEV (versões anteriores)
→
XMLOpen complaining about invalid UTF-8 Character
XMLOpen complaining about invalid UTF-8 Character
Iniciado por Malc, ago., 12 2022 3:38 PM - 1 resposta
Conecte-se…
Malc
#1
Membro registado
7 mensagems
Popularité : +1 (1 vote)
Publicado em agosto, 12 2022 - 3:38 PM
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
Denunciar
0
0
JEMA
#2
Membro registado
4 mensagems
Publicado em novembro, 04 2022 - 9:00 AM
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.
Denunciar
0
0
→ Voltar para WINDEV (versões anteriores)
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