I notice that if I run "locale" from my MAC Terminal I get the correct one (utf-8), but if I run proc:system("locale") I get:
LANG= LC_COLLATE="C" LC_CTYPE="C" LC_MESSAGES="C" LC_MONETARY="C" LC_NUMERIC="C" LC_TIME="C" LC_ALL=
Is there a way to force BaseX to start with utf-8? Thanks.
Ciao, Giuseppe
On Feb 12, 2019, at 9:12 AM, Giuseppe G. A. Celano celano@informatik.uni-leipzig.de wrote:
Hi Liam
Thanks. My locale is actually "en_US.UTF-8", so I do not know why the error is raised
On Feb 12, 2019, at 6:30 AM, Liam R. E. Quin liam@fromoldbooks.org wrote:
On Tue, 2019-02-12 at 01:42 +0100, Giuseppe G. A. Celano wrote:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 5390: ordinal not in range(128)
A guess - sounds like an encoding error - 0xE2 is â in Unicode, and 128 suggests US ASCII was expected - check the encoding declaration on the XML, or maybe it's a locale difference?
-- Liam Quin, https://www.delightfulcomputing.com/ Available for XML/Document/Information Architecture/XSLT/ XSL/XQuery/Web/Text Processing/A11Y training, work & consulting. Web slave for vintage clipart http://www.fromoldbooks.org/