Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Commit 18c5b1e

Browse files
authored
Fix/read utf8 (#120)
* Changing encoding to utf 8 when reading from temp file. * Updating to latest tools service.
1 parent 75db0d1 commit 18c5b1e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mssqlscripter/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def main(args):
9494
# Only write to stdout if user did not provide a file path.
9595
logger.info('stdout current encoding: {}'.format(sys.stdout.encoding))
9696
if temp_file_path:
97-
with io.open(parameters.FilePath, encoding=u'utf-16') as script_file:
97+
with io.open(parameters.FilePath, encoding=u'utf-8') as script_file:
9898
for line in script_file.readlines():
9999
sys.stdout.write(line)
100100

mssqltoolsservice/buildwheels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from urllib.request import urlopen
1818

1919

20-
DOWNLOAD_URL_BASE = 'https://mssqlscripter.blob.core.windows.net/sqltoolsservice-06-28-2017/'
20+
DOWNLOAD_URL_BASE = 'https://mssqlscripter.blob.core.windows.net/sqltoolsservice-07-12-2017/'
2121

2222
# Supported platform key's must match those in mssqlscript's setup.py.
2323
SUPPORTED_PLATFORMS = {

0 commit comments

Comments
 (0)