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

unknown file encoding #32

Closed
karokhaziz opened this issue Sep 2, 2023 · 1 comment
Closed

unknown file encoding #32

karokhaziz opened this issue Sep 2, 2023 · 1 comment

Comments

@karokhaziz
Copy link

karokhaziz commented Sep 2, 2023

Hi
when i want to resore backup file in workbench it give me this message unknown file encoding it say its not utf8
its work fine in macos but in windows it has this issue
how can i fix this issue
thanks

@karokhaziz
Copy link
Author

i find the issue its from
FileOutputStream outputStream = new FileOutputStream( new FileOutputStream(sqlFolder + "/" + sqlFileName));
replace it to
OutputStreamWriter outputStream =new OutputStreamWriter(Files.newOutputStream(Paths.get(sqlFolder + "/" + sqlFileName)), StandardCharsets.UTF_8);

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

1 participant