SQL Server字符集编码问题

编程入门 行业动态 更新时间:2024-10-28 15:25:50
本文介绍了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字符集编码问题

本文发布于:2023-11-09 19:31:24,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1573233.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:字符集   SQL   Server

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!