You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use Slacker against the old Microsoft Northwind sample database. I'm guessing the issue is more of a Ruby / OS config issue than a Slacker problem. However, I'm just learning so I thought I'd ask.
I have a simple test:
# Method "describe" opens up an example group.describe'customers'doit'customer cactu has results'doresult=sproc('CustOrderHist',:CustomerID=>'CACTU')expect(result).tomatch('cactuorder_hist.csv')endend
The cactuorder_hist.csv has the records from the database.
When I run the test, I get the following error:
Encoding::CompatibilityError:
incompatible character encodings: Windows-1252 and ASCII-8BIT
I'm running on Windows 10 1709 x64 against a local SQL Server 2017 instance. I've tried both ODBC and the tinyTDS option.
I've tried saving the file using the various encoding options (UTF-8, Unicode, etc.) in Notepad but I get other errors. Currently the file is saved with ANSI encoding and shows the above error.
Here's the resultset:
ProductName,Total
Geitost,10
Gorgonzola Telino,1
Ipoh Coffee,7
Jack's New England Clam Chowder,10
Laughing Lumberjack Lager,20
Rhönbräu Klosterbier,20
Röd Kaviar,10
Rössle Sauerkraut,8
Sasquatch Ale,20
Scottish Longbreads,6
Steeleye Stout,3
The text was updated successfully, but these errors were encountered:
I'm trying to use Slacker against the old Microsoft Northwind sample database. I'm guessing the issue is more of a Ruby / OS config issue than a Slacker problem. However, I'm just learning so I thought I'd ask.
I have a simple test:
The cactuorder_hist.csv has the records from the database.
When I run the test, I get the following error:
Encoding::CompatibilityError:
incompatible character encodings: Windows-1252 and ASCII-8BIT
I'm running on Windows 10 1709 x64 against a local SQL Server 2017 instance. I've tried both ODBC and the tinyTDS option.
I've tried saving the file using the various encoding options (UTF-8, Unicode, etc.) in Notepad but I get other errors. Currently the file is saved with ANSI encoding and shows the above error.
Here's the resultset:
ProductName,Total
Geitost,10
Gorgonzola Telino,1
Ipoh Coffee,7
Jack's New England Clam Chowder,10
Laughing Lumberjack Lager,20
Rhönbräu Klosterbier,20
Röd Kaviar,10
Rössle Sauerkraut,8
Sasquatch Ale,20
Scottish Longbreads,6
Steeleye Stout,3
The text was updated successfully, but these errors were encountered: