using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using web; using System.Text; public partial class rank : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if(!Page.IsPostBack) { this.Repeater1.DataSource = new DataProviders().ExecuteSqlDs("SELECT TOP (100) [CharacterIDX],[CHARACTER_NAME],[UseCount] ,[LastUseDate] FROM [MHGame].[dbo].[UseItemEventLog] order by [UseCount] desc", "UseItemEventLog"); this.Repeater1.DataBind(); } } public static byte[] Big5ToUtf8(byte[] src) { string s = Encoding.GetEncoding("BIG5").GetString(src); byte[] dst = Encoding.UTF8.GetBytes(s); return dst; } public string getBIG5(string str) { byte[] bytes = Encoding.GetEncoding("GBK").GetBytes(str.ToString()); return Encoding.GetEncoding("BIG5").GetString(bytes); } public string setBIG5(string str) { byte[] bytes = Encoding.GetEncoding("BIG5").GetBytes(str.ToString()); return Encoding.GetEncoding("GBK").GetString(bytes); } }