sqlserver2pgsql icon indicating copy to clipboard operation
sqlserver2pgsql copied to clipboard

Encoding Error

Open fclaudiopalmeira opened this issue 2 years ago • 2 comments

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

fclaudiopalmeira avatar Oct 17 '22 22:10 fclaudiopalmeira

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

gviamont avatar Mar 29 '23 21:03 gviamont

@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!

gviamont avatar Mar 29 '23 22:03 gviamont