Hi Christian,
The problem with Mac is that it is not that easy to chance root settings.
However, I have found a workaround, which may be useful to others: instead of
invoking something like proc:system("python", "main.py"), I create a bash file
like:
#!/bin/bash
export LC_ALL=en_US.UTF-8
Hi Giuseppe,
Have you tried to set your locale variable on your system? If it’s
Ubuntu, you could have a look here:
https://ubuntuforums.org/showthread.php?t=2212353
Hope this helps,
Christian
On Tue, Feb 12, 2019 at 4:13 PM Giuseppe G. A. Celano
wrote:
>
> I notice that if I run "locale"
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,
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 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
>>
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
Hi,
I am trying to run a parser via proc:execute/system. While if I run it from the
command line, it works, it does not, if I run it via BaseX. More precisely, I
get the following error:
Traceback (most recent call last):
File "main.py", line 325, in module
test_data =
6 matches
Mail list logo