gronank / ExportToABRIS

Script to copy rotorheads server state into Ka-50 ABRIS
MIT License
2 stars 4 forks source link

cant handle utf8 chartacters #11

Open ewan-000 opened 10 months ago

ewan-000 commented 10 months ago

Traceback (most recent call last): File "ExportToAbris.py", line 89, in File "ExportToAbris.py", line 76, in exportToAbris File "exportabris.py", line 89, in Export File "exportabris.py", line 14, in save File "encodings\cp1252.py", line 19, in encode UnicodeEncodeError: 'charmap' codec can't encode character '\u25ed' in position 22784: character maps to [8588] Failed to execute script 'ExportToAbris' due to unhandled exception!

    {
        "geometry": {
            "coordinates": [
                37.180584486445,
                33.808557073502
            ],
            "type": "Point"
        },
        "properties": {
            "description": "CSAR: A-10C_2-Jackal 3C [◭] AJsarge<br>33 48' 30.805\"N  37 10' 50.104\"E<br>",
            "icon": "csar"
        },
        "type": "Feature"
    },
ewan-000 commented 10 months ago

I think this just needs the encoding specified in the save function