I try to change the Default code page into PC858 (Multilanguage + Euro) for print the Symbol € .
But any ESC/POS command work.
So i try to send hex value of command :
public void EnvoiCommande(byte donnee)
{
byte[] array = {donnee};
_outStream.Write(array, 0, 1);
_outStream.Flush();
}
public void ImpressionTicket(List<string> donnee, string appareil, Texture2D logo)
{
// Code Page
EnvoiCommande(0x1b);
EnvoiCommande(0x74);
EnvoiCommande(0x13);
foreach (var txt in donnee)
{
var ligne = txt;
Encoding encoding = Console.OutputEncoding;
byte[] originalBytes = encoding.GetBytes(ligne);
byte[] outputBytes = Encoding.Convert(encoding,
Encoding.GetEncoding("CP00858"), originalBytes);
_outStream.Write(outputBytes, 0, outputBytes.Length);
Thread.Sleep(10);
}
}
All of my text is print correctly but my symbol € don't work.
Thank in advance for your help, i have try many PDF, And test many similar questions about that, but anything don't work.