最近将ERP系统从VS.NET 2003 升级到 VS.NET 2005 后,原代码的中文汉字全部变成了乱码,导致无法阅读,也无法正常编译,而利用 EditPlus 或记事本打均正常,百思不得其解。
解决方法:
“工具”菜单 —》 “选项” —》 “文本编辑器” —》将 ”自动检测不带签名的 UTF-8编码”选中即可。如图:
修改前:
1
//=======================================================
2
//鎺т欢鍚嶇О锛?ue_comProductClass 鐢ㄦ埛鎺т欢
3
//鍔熻兘鎻忚堪锛?
4
//寮€ 鍙?鑰咃細 LeeWenjie
5
//寮€鍙戞椂闂达細 2008-08-01
6
//=======================================================
7
8
using System;
9
using System.Collections;
10
using System.ComponentModel;
11
using System.Drawing;
12
using System.Data;
13
using System.Windows.Forms;
14
using System.Reflection;
15
16
using P9ERP.Model;
17
using P9ERP.IBLL;
18
using P9ERP.Data;
19
20
namespace P9ERP.UI.COM.BaseControl
21

{
22
/**////
<summary>
23
/// ue_comProductClass鐢ㄦ埛鎺т欢
鐨勬憳瑕佽 鏄庛€?///
</summary>
24
public
class ue_comProductClass : P9ERP.UI.Base.BaseControl.ue_Base
25

{
26
}
27
}
//=======================================================2
//鎺т欢鍚嶇О锛?ue_comProductClass 鐢ㄦ埛鎺т欢3
//鍔熻兘鎻忚堪锛?4
//寮€ 鍙?鑰咃細 LeeWenjie5
//寮€鍙戞椂闂达細 2008-08-016
//=======================================================7

8
using System;9
using System.Collections;10
using System.ComponentModel;11
using System.Drawing;12
using System.Data;13
using System.Windows.Forms;14
using System.Reflection;15

16
using P9ERP.Model;17
using P9ERP.IBLL;18
using P9ERP.Data;19

20
namespace P9ERP.UI.COM.BaseControl21


{22

/**////
<summary>23
/// ue_comProductClass鐢ㄦ埛鎺т欢
鐨勬憳瑕佽 鏄庛€?///
</summary>24
public
class ue_comProductClass : P9ERP.UI.Base.BaseControl.ue_Base25


{26
}27
}
修改后:
1
//=======================================================
2
//控件名称: ue_comProductClass 用户控件
3
//功能描述:
4
//开 发 者: LeeWenjie
5
//开发时间: 2008-08-01
6
//=======================================================
7
8
using System;
9
using System.Collections;
10
using System.ComponentModel;
11
using System.Drawing;
12
using System.Data;
13
using System.Windows.Forms;
14
using System.Reflection;
15
16
using P9ERP.Model;
17
using P9ERP.IBLL;
18
using P9ERP.Data;
19
20
namespace P9ERP.UI.COM.BaseControl
21

{
22
/**////
<summary>
23
/// ue_comProductClass用户控件
的摘要说明。
24
///
</summary>
25
public
class ue_comProductClass : P9ERP.UI.Base.BaseControl.ue_Base
26

{
27
}
28
}
//=======================================================2
//控件名称: ue_comProductClass 用户控件3
//功能描述:
4
//开 发 者: LeeWenjie5
//开发时间: 2008-08-016
//=======================================================7

8
using System;9
using System.Collections;10
using System.ComponentModel;11
using System.Drawing;12
using System.Data;13
using System.Windows.Forms;14
using System.Reflection;15

16
using P9ERP.Model;17
using P9ERP.IBLL;18
using P9ERP.Data;19

20
namespace P9ERP.UI.COM.BaseControl21


{22

/**////
<summary>23
/// ue_comProductClass用户控件
的摘要说明。24
///
</summary>25
public
class ue_comProductClass : P9ERP.UI.Base.BaseControl.ue_Base26


{27
}28
}
605

被折叠的 条评论
为什么被折叠?



