dbsake icon indicating copy to clipboard operation
dbsake copied to clipboard

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

Open ghost opened this issue 4 years ago • 0 comments

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)

ghost avatar Jan 15 '21 12:01 ghost