You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, why is hardcoded encoding to IBM860? im 2 day fixed bad diacritic in printer.
Please, update code with input for codepage. Its only 3 lines:
in printer.cs declare private readonly string _codepage;
and public Printer(string printerName, string codepage) { _codepage = codepage;
}
Hi, why is hardcoded encoding to IBM860? im 2 day fixed bad diacritic in printer.
Please, update code with input for codepage. Its only 3 lines:
in printer.cs
declare private readonly string _codepage;
and public Printer(string printerName, string codepage) {
_codepage = codepage;
}
private void AppendString(string value, bool useLf)
{
...
var bytes = Encoding.GetEncoding(_codepage).GetBytes(value);
...
}
Thats all. Thanx for fix.
The text was updated successfully, but these errors were encountered: