We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://colorscripter.com/s/MDRJWkt
TextCmd.php
TextCmd.php.txt
The text was updated successfully, but these errors were encountered:
why not pasted here 👍
<?php namespace ReceiptPrintHq\EscposTools\Parser\Command; use ReceiptPrintHq\EscposTools\Parser\Command\Command; use ReceiptPrintHq\EscposTools\Parser\Command\TextContainer; //class TextCmd extends Command implements TextContainer //{ // private $str = ""; // // public function addChar($char) // { // if (isset(Printout::$tree[$char])) { // // Reject ESC/POS control chars. // return false; // } // $this -> str .= iconv('CP437', 'UTF-8', $char); // return true; // } // // public function getText() // { // return $this -> str; // } //} // class TextCmd extends Command implements TextContainer { private $str = array(); public function addChar($char) { if (isset(Printout::$tree[$char])) { // Reject ESC/POS control chars. return false; } array_push($this -> str , $char); //error_log(implode("", $this -> str)); //error_log($char); return true; } public function getText() { //error_log(iconv("EUC-KR", "UTF-8", implode("", $this -> str))); return iconv("EUC-KR", "UTF-8", implode("", $this -> str)); } }
Sorry, something went wrong.
No branches or pull requests
https://colorscripter.com/s/MDRJWkt
TextCmd.php
TextCmd.php.txt
The text was updated successfully, but these errors were encountered: