Fix/read utf8 (#120)
* Changing encoding to utf 8 when reading from temp file. * Updating to latest tools service.
This commit is contained in:
Родитель
75db0d1542
Коммит
18c5b1eb97
|
@ -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 = {
|
||||
|
|
Загрузка…
Ссылка в новой задаче