Cannot access columns with german umlauts in Laravel 5 using sqlsrv

拟墨画扇 提交于 2019-12-12 18:12:21

问题


I use an existing db on our SQL-Server 2008 with Laravel 5.

Many tables and columns contain german umlauts. I've set the charset of the connection to "utf8" and can access tables like Läger without problems. But I couldn't access columns with umlauts. Every query returns something like

["Stra�e"]=> string(15) "Mainzer Str. 97" 

instead of

["Straße"]

I've tested it with charset utf8 and latin1 but it's always the same result.

Any idea how to fix this without changing the existing db?

来源:https://stackoverflow.com/questions/39490953/cannot-access-columns-with-german-umlauts-in-laravel-5-using-sqlsrv

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!