0

My website based on yii framework and I work with SQL Server (on Windows) under linux using pdo_dblib + freetds.

My FreeTDS config:

[egServer70]
        host = my server ip address
        port = 1433
        tds version = 8.0
        client charset = UTF-8

Connection is fine. Website uses UTF-8, and SQL Servercolumns used nvarchar, ntext etc. types.

When I insert some cyrillic text into database, it inserts like this "????????????????????".

With english text inserts well.

When I select data where cyrillic text already have, it displays normal.

So problem only when I try INSERT cyrillic text.

Anyone know how resolve this issue?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
smokeelow
  • 85
  • 1
  • 10

1 Answers1

0

Try the following

INSERT INTO Sentences (LangText) VALUES (N'Поиск')

(Note the "N" qualifier on the constant)

for additional info, read Here

Gil Peretz
  • 2,399
  • 6
  • 28
  • 44