DIM SBUFF () AS BYTEDIM MSG As stringsBuff = Encoding.Getencoding ("GB2312"). GetBytes (msg.tochararray) udpclient.send (sbuff, 0, sbuff.length)