SQL Server字符集编码问题 [英] SQL Server charset encoding problem

查看:536
本文介绍了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字符集编码问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆