Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.
This repository was archived by the owner on May 13, 2025. It is now read-only.

Python3 Unicode Issues #22

@sivanahamer

Description

@sivanahamer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions