sql server 管理控制台不支持多字节字符
我正在尝试弄清楚如何正确使用 SQL Server Management Studio 和多字节 unicode 字符。甚至像这样简单的事情:
select N'动漫'
只在结果窗格中返回方框。我知道底层数据库设置正确,可以处理 unicode,PC 上的其他应用程序可以很好地处理中文字符,
非常感谢任何线索
I'm trying to work out how to use SQL server management studio properly with multi-byte unicode characters. even something as simple as:
select N'动漫'
just returns square boxes in the result pane. I know the underlying database is set up correctly to handle unicode and other apps on the PC work fine with chinese characters
any clues very much appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
将字体更改为 Arial Unicode MS 对我来说很有效。
我不明白为什么文本结果可以很好地使用字体显示,而网格结果则不能,以及为什么其他 Unicode 字体不起作用,但是哦,好吧。
Changing the font to Arial Unicode MS did the trick for me.
I don't understand why Text Results displays fine with Fonts where Grid Results does NOT, and why other Unicode Fonts don't work but oh well.
经过许多令人沮丧的时间解决这个问题后,我刚刚发现了一个解决方案(如果不是解释的话)。
更改查询结果字体对我的系统(Win 7 Enterprise,64 位)没有影响。
经过多次谷歌搜索后,我发现了这一点:我的汉字突然显示为方框
简而言之:创建一个新的 Windows 用户帐户,然后以该用户身份登录 - 您应该会发现您的汉字显示正确。现在登录您原来的帐户,您应该会发现它现在也可以正确显示汉字了。
因此,创建新帐户具有修复两个(可能是所有?)帐户的行为的效果。现在-有人有解释吗?
After many frustrating hours with this problem, I just discovered a solution (if not an explanation).
Changing the Query Results font had no effect on my system (Win 7 Enterprise, 64-bit).
After much Googling I discovered this: My Chinese Word Suddenly Appear As Square Box
In short: create a new Windows user account, then log in as that user - you should find that your Chinese characters display correctly. Now log in to your original account, and you should find this also now displays Chinese characters correctly.
So creating the new account has the effect of fixing the behaviour for both (possibly all?) accounts. Now - anyone have an explanation?