UniDAC + Lazarus + MSSQL + Polish characters
Posted: Tue 25 Jul 2017 17:02
I am using: WIN10 64 (15063); Lazarus 1.6.4 (32bit); UniDAC 7.0.2
Microsoft SQL Server Express (64-bit) v.12.0.4232.0
Server Collation Polish_CI_AS
In the database column [gr_Name] is varchar(50)
My query: UniQuery1.SQL.ADD('SELECT LEN([gr_Name]) as number_char, [gr_Name] ');
If ZConnection1.SpecificOptions.Values['Provider'] := 'prAuto'
then I get in the grid:
No Polish characters and missing characters.
if ZConnection1.SpecificOptions.Values['Provider'] := 'prDirect'
then I get in the grid:
Now they are Polish characters but words are too short.
What to do to get all the words along with the Polish characters ?
Microsoft SQL Server Express (64-bit) v.12.0.4232.0
Server Collation Polish_CI_AS
In the database column [gr_Name] is varchar(50)
Code: Select all
[gr_Name]
----------
AŁŁA
BĄBELKI
GOŁĄBKI
SŁODKI
ZŁOMZŁOMOWY
If ZConnection1.SpecificOptions.Values['Provider'] := 'prAuto'
then I get in the grid:
Code: Select all
number_char [gr_Name]
---------------------------------------------------------
4 A
7 B?BELKI
7 GO?BKI
6 S?ODKI
11 Z?OMZ?OMOWY
if ZConnection1.SpecificOptions.Values['Provider'] := 'prDirect'
then I get in the grid:
Code: Select all
number_char [gr_Name]
---------------------------------------------------------
4 AŁ
7 BĄBELK
7 GOŁĄB
6 SŁODK
11 ZŁOMZŁOMO
What to do to get all the words along with the Polish characters ?