byte[] bs = Encoding.Unicode.GetBytes("哎"); ushort uc = BitConverter.ToUInt16(bs, 0); string sEscape = "&#" + uc.ToString();