我用Reflector打开一个DLL,在其中发现下面的代码,
      SqlConnection connection1 = new SqlConnection(this.strConn);
      SqlCommand command1 = new SqlCommand();
      command1.Connection = connection1;
      command1.CommandText = "dbo.wsp_\u767b\u8bb0_\u5e02\u573a\u4e3b\u4f53\u767b\u8bb0_\u4f01\u4e1a\u67e5\u8be2_\u57fa\u672c\u8d44\u6599_\u4e3b\u4f53\u8eab\u4efd\u4ee3\u7801";
      command1.CommandType = CommandType.StoredProcedure;
      command1.Parameters.Clear();
      command1.Parameters.Add(new SqlParameter("@\u4e3b\u4f53\u8eab\u4efd\u4ee3\u7801", SqlDbType.VarChar, 0x18));
      command1.Parameters["@\u4e3b\u4f53\u8eab\u4efd\u4ee3\u7801"].Value = 编号;
      connection1.Open();
请问\u767b\u8bb0、\u5e02\u573a\u4e3b\u4f53\u767b\u8bb0……这样的表示什么内容?谢谢!

解决方案 »

  1.   

    unicode。你自己写一个含unicode的字符串,reflector一下。
      

  2.   

    存储过程/参数是中文名\u767b\u8bb0 
    登记\u5e02\u573a\u4e3b\u4f53\u767b\u8bb0
    市场主体登记\u4e3b\u4f53\u8eab\u4efd\u4ee3\u7801
    主体身份代码....
      

  3.   

    在vs.net里建立一个宏Imports EnvDTE
    Imports System.Globalization
    Imports System.Text.RegularExpressions
    Imports System.DiagnosticsPublic Module BirdshomeModule Birdshome    Sub Unicode2Character()Sub Unicode2Character()
            Dim doc As Document = DTE.ActiveDocument
            Dim docText As TextDocument = doc.Object
            Dim selText As TextSelection = docText.Selection()
            selText.SelectAll()
            Dim text As String = selText.Text
            Dim iLength As Integer
            Do
                iLength = text.Length
                Dim m As Match
                Dim strPattern As String = "(?<code>\\u[A-F0-9]{4})"
                m = Regex.Match(text, strPattern, RegexOptions.IgnoreCase)
                If m.Success Then
                    Dim strValue As String
                    strValue = m.Groups("code").Value
                    text = text.Replace(strValue, "")
                    Dim int As Integer
                    int = System.Int32.Parse(strValue.Substring(2, 4), NumberStyles.HexNumber)
                    Dim ch As Char = ChrW(int)
                    docText.ReplacePattern(strValue, ch)
                Else
                    Exit Do
                End If
                If Not text.Length < iLength Then
                    Exit Do
                End If
            Loop
            selText.StartOfDocument()
        End Sub
    End Module
      

  4.   

    http://www.cnblogs.com/birdshome/archive/2004/08/31/37926.aspx
      

  5.   


    char[]   uc={'\u6b22','\u8fce','\u4f7f','\u7528'};
    string   hz=new   string(uc);
    Response.Write(hz);