Re: Invalid byte 2 of 4-byte UTF-8 sequence
Michael Kay <mike-JkSD5nQpfvpWk0Htik3J/[email protected]> Thu, 10 Dec 2020 15:49:38 +0000
| Newsgroups | gmane.text.xml.saxon.help |
|---|---|
| Message-ID | <[email protected]> |
The most likely explanation is that the XML file which claims to be in UTF-8 encoding (or doesn't have an XML declaration, and UTF-8 has been inferred) but the actual encoding of the file is different - for example Windows-1252. Try taking a look at the offending text in a hex editor if the file is small enough to make that viable. Alternatively look at the data flow that produced this file to work out where it might have got the encoding wrong -- you're going to have to do that eventually to find the root cause. Michael Kay Saxonica > On 10 Dec 2020, at 14:44, Matthew J McCready (CENSUS/GEO FED) via saxon-help <[email protected] <mailto:[email protected]>> wrote: > > Fellow Saxonica Users, > > When the processor tries to handle the following elements: > > <Title>TIGER/Line Shapefile, 2020, county, Bayamón Municipio, PR, Area Landmark County-based Shapefile </Title> > <Place_Keyword>Bayamón</Place_Keyword> > > It gets the following error: > > Invalid byte 2 of 4-byte UTF-8 sequence > > Any idea why this would be happening? > > Thanks > > > Matthew McCready > U.S Census Bureau > Geography Division > Geographic Standards, Criteria, and Quality Branch (GSCQB) > 4H160B > 301-763-9101 > http://www.census.gov/ <http://www.census.gov/> > http://www.census.gov/about/contact-us/social_media.html <http://www.census.gov/about/contact-us/social_media.html> > > _______________________________________________ > saxon-help mailing list archived at http://saxon.markmail.org/ <http://saxon.markmail.org/> > [email protected] <mailto:[email protected]> > https://lists.sourceforge.net/lists/listinfo/saxon-help <https://lists.sourceforge.net/lists/listinfo/saxon-help> _______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ [email protected] https://lists.sourceforge.net/lists/listinfo/saxon-help