K
K
Konstantin2017-09-25 08:43:46
PHP
Konstantin, 2017-09-25 08:43:46

How to correctly assign encoding in mssql query?

From a site I transfer request in MSSQL, and I interpose a variable into parameter. If the parameter is numeric, then the answer comes
there is also Cyrillic (ab123), then he does not understand the upaor. How to change the encoding when sending a request so that it eats?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin, 2017-09-25
@kostya_vtomske

Tupanul. As they say, a good question has half the answer.
$name = iconv('UTF-8','CP1251',$data);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question