I am creating a sitemap XML file from my video sitemap database. In XML, I select the title of the video as title
and the description as description
, but there are some names and descriptions written in Thai, Portuguese, German and other languages. While generating XML through PHP, I ran into a problem that reads:
"XML parsing error: malformed."
XML generation stops after this error occurs.
XML Parsing Error: not well-formed Location: http:
I noticed that it contains invalid characters, as indicated below, and I replaced all types of these characters, but I realized that other languages use different characters.
ž ž ¸ ¸ à ½ ‰ Ù ° ¼ ≤ ± ± ± ±  ¾ ¾]]]]]] μ]: & thetas; * ©>% â © # "'ä æ ï ã Š ç>> Š º Ž ¥ œ ¤ ç ã ® ~ ¢ ¨ ¯ £
Is there a way to deal with this problem that supports all languages?
source share