godot-gdscript-toolkit icon indicating copy to clipboard operation
godot-gdscript-toolkit copied to clipboard

Issue parsing unicode characters

Open TranquilMarmot opened this issue 2 years ago • 3 comments
trafficstars

If you put a unicode character somewhere in your script (i.e. ) then the formatter will complain:

UnicodeEncodeError: 'charmap' codec can't encode character '\u2728' in position 3133: character maps to <undefined>

TranquilMarmot avatar Aug 09 '23 17:08 TranquilMarmot

@TranquilMarmot what gdtoolkit version do you use? I cannot reproduce the issue with latest version from master

Scony avatar Sep 09 '23 13:09 Scony

I'm on version 4.1.0.

For more context, I'm running this via the GDScript Formatter VSCode extension, so it's possible that the error is actually coming from there? The extension lists this repo as its repo, but this obviously isn't where its code lives 😝

TranquilMarmot avatar Sep 13 '23 04:09 TranquilMarmot

I'm on version 4.1.0.

For more context, I'm running this via the GDScript Formatter VSCode extension, so it's possible that the error is actually coming from there? The extension lists this repo as its repo, but this obviously isn't where its code lives 😝

actually the sources are here. I'll check if the extension is the source of the problem

Scony avatar Sep 13 '23 16:09 Scony

VSCode extension is no longer part of this repo.

Scony avatar Mar 21 '24 21:03 Scony

VSCode extension is no longer part of this repo.

Scony avatar Mar 21 '24 21:03 Scony