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

Encoding Error #168

Open
fclaudiopalmeira opened this issue Oct 17, 2022 · 2 comments
Open

Encoding Error #168

fclaudiopalmeira opened this issue Oct 17, 2022 · 2 comments

Comments

@fclaudiopalmeira
Copy link

Hi, while running this on Windows I am getting the following error:

Encodings too ambiguous: utf8 or iso-8859-15 at ./sqlserver2pgsql.pl line 1506.

How can it be fixed

@gviamont
Copy link

I get the same error running it from an Ubuntu Linux system.

@gviamont
Copy link

@fclaudiopalmeira I'm not a contributor to this project, but I came up with a hack that works on my system. I commented out lines 1505 and 1506 and then modified line 1512 to this:
open $file, "<:encoding(UTF-8)", $filename

Possible feature recommendation to the maintainers: Add a command line argument that accepts the schema's file encoding that bypasses the call to guess_encoding.

Also, thanks for creating this tool!

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

2 participants