本文介绍了SQL Server字符集编码问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有客户端应用程序和SQL Server.客户端将字符串存储到SQL Server中的varchar字段,然后再次检索它.问题是我需要一个字节数组,当我将其存储在数据库中并恢复数据时,所有字符128都转换为63.我知道这与字符集和编码有关,但是找不到解决方法. br/> 有什么主意吗? 谢谢.
Hi, I have client application and a SQL server. Client stores strings to a varchar field in SQL Server and retrieves it again. Te problem is that I need a byte array and when I store in the database and recover the data all chars 128 are converted to 63. I know it''s about charset and encoding but don''t find how to solve it. Any idea? Thanks.
推荐答案已解决.将服务器字段更改为二进制. Solved. Changed Server field to Binary.
更多推荐
SQL Server字符集编码问题
发布评论