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

ERROR: No mapping for the Unicode character exists in the target multi-byte code page #2

Open
digao-dalpiaz opened this issue Oct 11, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@digao-dalpiaz
Copy link
Owner

When running a definition, if some file name contains Unicode characters, this error occurs, and the process is interrupted.

unicode

@digao-dalpiaz digao-dalpiaz self-assigned this Oct 11, 2021
@digao-dalpiaz digao-dalpiaz added the bug Something isn't working label Oct 11, 2021
@digao-dalpiaz
Copy link
Owner Author

https://stackoverflow.com/questions/35708827/what-could-cause-no-mapping-for-the-unicode-character-exists-in-the-target-mult

It's a bug in Delphi.

Disabling Log File in Updater should avoid this bug.

@sprudi
Copy link

sprudi commented May 28, 2024

You can avoid this with disabling Logging or set encoding to ANSII in UEngine.pas
--> TFile.AppendAllText(pubLogFile, DateTimeToStr(Now)+' - '+LogFilePrefix+Text + #13#10, TEncoding.ANSI);

@digao-dalpiaz
Copy link
Owner Author

You can avoid this with disabling Logging or set encoding to ANSII in UEngine.pas --> TFile.AppendAllText(pubLogFile, DateTimeToStr(Now)+' - '+LogFilePrefix+Text + #13#10, TEncoding.ANSI);

Right, but the text being sent to the log file contains unicode characters. So, in this case, it would not be correct for me to include a line in the file forcing ANSI encoding, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants