pos

C# ESC/POS Print Vietnamese

淺唱寂寞╮ 提交于 2019-12-04 03:40:54
问题 I have an application which print the receipt to receipt printer using ESC/POS. It needs to support multi-languages. Currently, I've tested with Chinese characters (both traditional and simplified) and Thai language. They all are working fine. However, when I tried to print Vietnamese, some of the characters are being replace by "?". Here is my code: public static readonly string ESC = "\u001B"; ... ... ... Encoding enc = Encoding.GetEncoding(1258); //vietnamese code page string content =