Skip to content

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe4 in position 617: invalid continuation byte #2683

Description

@Wildewutz

XLWINGS 0.33.21 is installed on Windows10 machine with EXCEL 2016 (german). Opened my XLSM file. Started VSCODE, typed in 'XLWINGS VBA edit' and got:
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\dev\Python313\Scripts\xlwings.exe_main
.py", line 7, in
sys.exit(main())
~~~~^^
File "C:\dev\Python313\Lib\site-packages\xlwings\cli.py", line 1305, in main
args.func(args)
~~~~~~~~~^^^^^^
File "C:\dev\Python313\Lib\site-packages\xlwings\cli.py", line 857, in vba_edit
path_to_type = export_vba_modules(book, overwrite=False)
File "C:\dev\Python313\Lib\site-packages\xlwings\cli.py", line 764, in export_vba_modules
exported_code = f.readlines()
File "", line 325, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe4 in position 617: invalid continuation byte

What can I do to prevent this error?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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