S
S
serNevajno2018-02-06 20:06:22
PHP
serNevajno, 2018-02-06 20:06:22

How to enter an umlaut in MS SQL in php?

Hello uv. community. Tell me, I'm entering the text into the database in which there are umlauts and the database is entered incorrectly.

$server = '111.111.111.117'; 
$user = "test";     
$pass = "test";   
$mydb = "test"; 

$con = mssql_connect($server, $user, $pass);

mssql_query("INSERT INTO [table] ([Address]) VALUES ('Ostfildern, Niemöllerstrasse')");

Ostfildern, Niemöllerstrasse comes to the base

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Tsvetkov, 2018-02-06
@tsklab

[Address]
Must be of type UNICODE .
Google gave this answer: UTF-8 encoding problem .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question