cqtrq 2015-10-24 10:20 采纳率: 100%
浏览 2121
已采纳

字符串中显示乱码的问题

我下载了微软的Samples Environments for Microsoft Chart Controls进行学习,
不过编译时出现两类错误,一类提示“应输入;”,实际是代码中的很多字符串中出现了乱码,比如:

 this.label1.Text = "The Y data爒alue爄s bound to the chart using OleDb and燼n Access database, and爐h" +
                "e data is selected using a simple SQL query.?;                             

另一类错误是提示“常量中有换行符”,估计也应该是中英文字符集产生冲突了。比如:

 this.label9.Text = "This sample shows how to assign data to a chart series using a DataView object.?;

我的软件版本vs2012,请问在哪里设置字符集啊???

  • 写回答

3条回答 默认 最新

  • 全栈极简 博客专家认证 2015-10-24 10:28
    关注

    this.label9.Text = "This sample shows how to assign data to a chart series using a DataView object.?";

    this.label1.Text = "The Y data爒alue爄s bound to the chart using OleDb and燼n Access database, and爐h" + "e data is selected using a simple SQL query.?";

    两个语句后面都少个引号。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?