【发布时间】:2013-03-07 13:21:45
【问题描述】:
将丹麦语字符插入 sql server 到具有 nvarchar 数据类型的字段时,丹麦语字符格式错误。示例: brændstof 被转换为 brændstof。当它直接来自 sql server 查询窗口时,它工作正常。我尝试为该字段提供不同的排序规则(Latin1_Genaral、Danish_Greenlandic_100_CI_AI、Danish_Norwegian_CI_AI 等)有没有办法实现这一点。我正在使用Microsoft Drivers 3.0 for PHP for SQL Server。请帮忙
【问题讨论】:
-
这听起来像是一个普通的 utf8/unicode 问题。我自己只使用 MySQL,但我相信您也可以在 MySQL 中指定一行的 collation (字符集)。 Here's a guide on all the steps in MySQL/PHP to go through to make sure everything is the correct character set - I'm sure you could use some of this info for MSSQL
-
nitpickery,但“排序规则”与字符集不同。
-
请澄清这个模糊但关键的句子:`当它直接来自sql server查询窗口时,它工作正常。`
标签: php sql-server sql-server-2008-r2