Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x93 in position 2: invalid start byte #135

Open
ghost opened this issue Jan 15, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Jan 15, 2021

I'm trying to extract the schema data from .frm files. It works perfectly for most tables but I have one file that gives me the following error :

Uncaught exception! (╯°□°)╯ ︵ ┻━┻
Traceback (most recent call last):
File "runpy.py", line 170, in run_module_as_main
File "runpy.py", line 85, in run_code
File "tools\dbsake_main
.py", line 22, in
sys.exit(main())
File "tools\dbsake_main
.py", line 18, in main
sys.exit(dbsake.cli.main())
File "tools\dbsake\dbsake\cli_init_.py", line 123, in main
dbsake(args=argv, auto_envvar_prefix='DBSAKE', obj={})
File "tools\dbsake\click\core.py", line 722, in call
return self.main(*args, **kwargs)
File "tools\dbsake\click\core.py", line 697, in main
rv = self.invoke(ctx)
File "tools\dbsake\click\core.py", line 1066, in invoke
return process_result(sub_ctx.command.invoke(sub_ctx))
File "tools\dbsake\click\core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "tools\dbsake\click\core.py", line 535, in invoke
return callback(*args, **kwargs)
File "tools\dbsake\click\decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "tools\dbsake\dbsake\cli\cmd\frm.py", line 71, in frmdump
failures += parse_and_print(name, type_codes, replace)
File "tools\dbsake\dbsake\cli\cmd\frm.py", line 26, in parse_and_print
table = frm.parse(frm_path)
File "tools\dbsake\dbsake\core\mysql\frm_init
.py", line 41, in parse
return dispatch(path)
File "tools\dbsake\dbsake\core\mysql\frm\binaryfrm.py", line 401, in parse
table = Table.from_data(data, context=packed_frm_data)
File "tools\dbsake\dbsake\core\mysql\frm\binaryfrm.py", line 139, in from_data
connection = connection.decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x93 in position 2: invalid start byte
It's okay. ┬─┬ノ( º_ ºノ)
Consider filing a bug report at https://github.com/abg/dbsake/issues

(Windows 10, Python-2.7.15, Jinja2-2.11.2, click-7.1.2)

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

No branches or pull requests

0 participants