Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将 ' (撇号)转换为 ' (单引号)。我正在从 rss 读取数据并将其保存到数据库中。在保存撇号时,它保存为 ? (问号)。是否有任何方法可以更改为单引号。
提前致谢。
您应该使用.replace方法
IEYourstringname.ToString.Replace("'","''")
Yourstringname.ToString.Replace("'","''")