Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/262.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 从Ubuntu 16.01服务器插入到远程Mssql服务器_Php_Sql Server_Laravel_Ubuntu_Nginx - Fatal编程技术网

Php 从Ubuntu 16.01服务器插入到远程Mssql服务器

Php 从Ubuntu 16.01服务器插入到远程Mssql服务器,php,sql-server,laravel,ubuntu,nginx,Php,Sql Server,Laravel,Ubuntu,Nginx,我正在使用Laravel Forge+Digital Ocean作为服务器解决方案。Forge在Digital Ocean上创建了默认服务器 当我从本地主机(Ubuntu 14.04 PHP 5.6 Apache2)插入远程mssql时,一切都很好。但当我从生产服务器(Laravel Forge+Digital Ocean Ubuntu 16.01 PHP7-NGINX)插入远程mssql时,我遇到了字符编码问题 它看起来像中国的 Mssql“排序规则”=>“土耳其语” 我为两台服务器应用了所

我正在使用Laravel Forge+Digital Ocean作为服务器解决方案。Forge在Digital Ocean上创建了默认服务器

当我从本地主机(Ubuntu 14.04 PHP 5.6 Apache2)插入远程mssql时,一切都很好。但当我从生产服务器(Laravel Forge+Digital Ocean Ubuntu 16.01 PHP7-NGINX)插入远程mssql时,我遇到了字符编码问题

它看起来像中国的

Mssql“排序规则”=>“土耳其语”

我为两台服务器应用了所有说明。我做错了什么

更新:

iconv('UTF-8', 'CP1254' , $value)

我返回了默认配置并应用了此iconv解决方案。但是它也不起作用。

我在stackoverflow中找到了解决方案谢谢。我在stackoverflow中找到了解决方案谢谢。