1

Is there a way to change the encoding for the deploy script generated by Sql Server Data Tools from UTF-8 to ANSI?

The problem that I have is that I have a string in a function that contains the caracter "è" and in the generated deploy script a box appears instead of this character.

EDIT: I'm using SSDT with Visual studio 2013 and 2015.

2
  • I don't know anything off the top of my head, but may be worth pinging the SSDT team on Twitter to see if they have an idea - twitter.com/sqldatatools. Commented Apr 6, 2016 at 14:12
  • I'll give it a try. Thanks Commented Apr 6, 2016 at 16:13

1 Answer 1

0

You should change encoding of all files in your project to UTF-8 and deploy script will be correct.

Sign up to request clarification or add additional context in comments.

2 Comments

Your answer should be some details to understand the cause.
Some time ago I have experienced a same problem and solved it as I said above. I think this is a bug of VS, when it finds any source file with different encoding than utf-8, this fact forces it to sense all other files the same way, but VS still makes deploy script with utf-8. Changing "encoding" tag in XMLs of project files didn't give any effect. Sorry for my short phrases, it because so difficult to write english for me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.