* Changing encoding to utf 8 when reading from temp file.

* Updating to latest tools service.
This commit is contained in:
Ronald Quan 2017-07-12 16:11:14 -07:00 коммит произвёл GitHub
Родитель 75db0d1542
Коммит 18c5b1eb97
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -94,7 +94,7 @@ def main(args):
# Only write to stdout if user did not provide a file path.
logger.info('stdout current encoding: {}'.format(sys.stdout.encoding))
if temp_file_path:
with io.open(parameters.FilePath, encoding=u'utf-16') as script_file:
with io.open(parameters.FilePath, encoding=u'utf-8') as script_file:
for line in script_file.readlines():
sys.stdout.write(line)

Просмотреть файл

@ -17,7 +17,7 @@ install_aliases()
from urllib.request import urlopen
DOWNLOAD_URL_BASE = 'https://mssqlscripter.blob.core.windows.net/sqltoolsservice-06-28-2017/'
DOWNLOAD_URL_BASE = 'https://mssqlscripter.blob.core.windows.net/sqltoolsservice-07-12-2017/'
# Supported platform key's must match those in mssqlscript's setup.py.
SUPPORTED_PLATFORMS = {