Mercurial(HG) update with UnicodeDecodeError - mercurial

When I try to use "hg update", this shows up:
UnicodeDecodeError: 'utf8' codec can't decode byte 0xd6 in position 21: invalid continuation byte
This Error occurs in OSX, not in Windows.

This problem also occurred to me and I guessed that's because python use different filename encoding for Windows and other system, you may find details from:
Mercurial update exception caused by python UnicodeDecodeError

Related

Why does MySQL use a different charset for export when UTF8MB4 is set?

Originally, MySQL has some schemas to use for practicing, but for some reason world.city and world.country cannot be exported for me.
I checked the log and it wrote:
Traceback (most recent call last):
File "C:\Program Files\MySQL\MySQL Workbench 8.0\workbench\wizard_progress_page_widget.py", line 197, in thread_work
self.func()
File "C:\Program Files\MySQL\MySQL Workbench 8.0\modules\sqlide_power_export_wizard.py", line 273, in start_export
retval = self.module.start(self.stop)
File "C:\Program Files\MySQL\MySQL Workbench 8.0\modules\sqlide_power_import_export_be.py", line 302, in start
ret = self.start_export()
File "C:\Program Files\MySQL\MySQL Workbench 8.0\modules\sqlide_power_import_export_be.py", line 398, in start_export
output.writerow(row)
File "C:\Program Files\MySQL\MySQL Workbench 8.0\Python\Lib\encodings\cp1250.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\xe8' in position 16: character maps to <undefined>
ERROR: Export data to file: 'charmap' codec can't encode character '\xe8' in position 16: character maps to <undefined>
Failed
If I get it right the problem is that xe8 is supposedly not supported. So I researched about it and found out that maybe my charset is UTF-8 but no, it is UTF8MB4 as it should be as that is the default for v8.0.
utf8mb4 as you can see
I checked what the system would do with other characters such as the Hungarian ő and ű which are generally much more rare than è (xe8) or ø (xf8) but it did encode ő and ű correctly whilst it gives an error for the other two.
I also found a line in the above log talking about cp1250.py which is probably causing the problem but I have no idea how to fix it, as you saw utf8mb4 is set so I don't understand why it tries for cp1250.
I checked the characters included in that (https://en.wikipedia.org/wiki/Windows-1250) and it really does not include those letters that give the error but has ő and ű.
I hope somebody knows here what should I do to fix this, thank you in advance! :)
EDIT:
I kept trying and making changes to find how could I tell the export wizard to use utf8mb4 instead (even though it is set).
So I deleted cp1250 from the python encodings out of curiosity. This caused the export wizard to try mbcs.py instead, which is really strange... So I decided to delete that too just to see what happens and this gave the new error saying it cannot find the cp1250 component. Which is even weirder.
Also turned out this behavior of the export wizard only happens if the output should be csv, as it could be exported to JSON without any problem.

UnicodeEncodeError occurs when attempting to migrate MSSQL data to MariaDB with MySQL Workbench

I'm trying to move data from SQL Server to MariaDB using MySQL Workbench.
I installed it as 8.0.27 version at first, and after the problem occurred, I downgraded it to 8.0.26 version, but the problem was not solved.
I'm confused whether it's a problem with the data you're trying to move or something that's happening in MySQL Workbench.
I tried googling, but there was a similar phenomenon, but I couldn't find an answer.
https://bugs.mysql.com/bug.php?id=105772
Can you give me some advice?
thanks you.
------------------------------------------------------------------ Starting... Create Script File...
Traceback (most recent call last): File "C:\Program
Files\MySQL\MySQL Workbench 8.0
CE\workbench\wizard_progress_page_widget.py", line 71, in run
self.func() File "C:\Program Files\MySQL\MySQL Workbench 8.0 CE\modules\migration_schema_creation.py", line 188, in
_create_script_task
self.main.plan.createTargetScript(self.main.plan.state.objectCreationParams["CreateSQLFile"])
File "C:\Program Files\MySQL\MySQL Workbench 8.0
CE\modules\migration.py", line 527, in createTargetScript
grt.modules.DbMySQLFE.createScriptForCatalogObjects(path, self.migrationTarget.catalog, self.state.objectCreationParams)
SystemError: UnicodeEncodeError("'charmap' codec can't encode
characters in position 99-104: character maps to "): error
calling Python module function DbMySQLFE.createScriptForCatalogObjects
ERROR: Error during Create Script File: UnicodeEncodeError("'charmap'
codec can't encode characters in position 99-104: character maps to
"): error calling Python module function
DbMySQLFE.createScriptForCatalogObjects ERROR: Exception in task
'Create Script File': SystemError('UnicodeEncodeError("'charmap'
codec can't encode characters in position 99-104: character maps to
"): error calling Python module function
DbMySQLFE.createScriptForCatalogObjects')
Failed
enter image description here
If you are seeing \uFFFD, that is the REPLACEMENT CHARACTER - - �
It means that the data was already corrupted beyond repair. Go back a step in the process of the data to see what first led to it.
See also "black diamond" in Trouble with UTF-8 characters; what I see is not what I stored to find some ways that it can occur purely in MySQL. However, it sounds like SQL Server created it; I think the problem is back there.
Fetch the hex for any characters involved, noting that \uFFDD (UTF-8 hex: EFBFBD) is after things are already corrupted.
In UTF-8 (MySQL's utf8 or utf8mb4), Hex EAB0zz through ED9Ezz is used for Hangul (Korean). For example, 박상우 is hex EBB095 EC8381 EC9AB0 (minus the spaces).

How to fix error "could not initialize WinDbg engine" in ida pro 7.5?

I get this error when i am trying to run the debugger:
I already wrote the path to the debugger in ida.cfg.
The problem was in Russian characters in the file path.
The problem was in Russian characters in the path to debug file.

mysqlWorkbench Error : Unhandled exception: new-line character seen in unquoted field

Can anyone please help fix this Error?
Task: I am trying to import data from a csv file
mysqlWorkbench Error : Unhandled exception: new-line character seen in unquoted field - do you need to open the file in universal-newline mode? Check the log for more details.
Resolved:
All I had to do was to save the ccv file as a Windows csv even though I was doing so from a Mac.

MySQL Data Export: 'ascii' codec can't decode byte 0xc3 in position 60: ordinal not in range(128)

When I try to dump data from my Cloud SQL database through MySQL Workspace, I get this in the log of the export process:
Error executing task: 'ascii' codec can't decode byte 0xc3 in position 60: ordinal not in range(128)
Error executing task local variable 'p1' referenced before assignment
What's causing this and how do I solve it?
EDIT: It works when dumping data from a local MySQL server, so the problem occurs only when trying to dump from Google Cloud SQL. I still don't know why it happens.
I had the same error message. The problem was, that in my local path (where I wanted to save the backup) a folder had a french character é. When saved it in another folder, then it worked