如题
解决方案 »
- C# 画直线带一个箭头 完成了大部分
- C# Winfrom 如何判断鼠标在窗体上是否移动过?
- Remoting.Channels.Tcp问题
- 再做winform打印时遇到的一个奇怪的问题!
- 如何在Windows 窗体DataGrid的一列单元格里添加一个下拉框控件?
- tabControl 在xp下标题背景透明 在2003系统下不可以,求解决
- 非常郁闷,这是怎么回事???大家进来看看,在线等待~
- 关于.NET汇编
- 系统中有个文件需要加密,但是不知道怎么保存密码比较安全,大家有什么建议?
- 线程里如果需要更新多个UI控件,怎么办
- 怎么样获取GroupBox里的一个Button控件
- Asp.net(C#)请问高手下面的代码的意思
MessageBox.Show(s);
{
string s ="\u9519\u8bef\uff1a\u5173\u8054";
PrintCPBytes(s,932);
}
public void PrintCPBytes(string str, int codePage)
{
Encoding targetEncoding;
byte[] encodedChars;
// Gets the encoding for the specified code page.
targetEncoding = Encoding.GetEncoding(codePage); // Gets the byte representation of the specified string.
encodedChars = targetEncoding.GetBytes(str); // Prints the bytes.
Response.Write(str);
}
{
Encoding targetEncoding;
byte[] encodedChars;
// Gets the encoding for the specified code page.
targetEncoding = Encoding.GetEncoding(codePage);// Gets the byte representation of the specified string.
encodedChars = targetEncoding.GetBytes(str);// Prints the bytes.
Response.Write(str);
}
你这里的str都没处理嘛,绕了一圈子~~~~~~
看样子你的基本功也要加强偶~~~