Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Python3 Unicode Issues #22

Open
sivanahamer opened this issue Feb 19, 2022 · 0 comments
Open

Python3 Unicode Issues #22

sivanahamer opened this issue Feb 19, 2022 · 0 comments

Comments

@sivanahamer
Copy link

Hello!

While running Unicode characters in da4 there are execution time errors for Python3. However, this should not happen as Unicode is the default for strings in Python3.

An example is the following code:

test = "á"

That produces the following "syntax error":

  File "<stdin>", line 0

    ^
SyntaxError: 'ascii' codec can't decode byte 0xc3 in position 8: ordinal not in range(128)

I think that the error is caused due to the LANG environment variable. Running in da4:

echo $LANG

I get that the language is C. However, if I run the same command in da0 I get en_US.UTF-8. Therefore, if we set the language of da4 using:

export LANG="en_US.UTF-8"

Then executing the code from above removes the error. I'm not sure if this is something that is happening in other servers or could be configured globally as a fix.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant