MYSTERY ZILLION တွင် English သို့မဟုတ် Unicode ဖြင့်သာ အသုံးပြုခွင့်ရှိသည်။ ဇော်ဂျီ ၊ ဧရာ စသည်တို့ကို အသုံးပြုခွင့် မရှိ။ Unicode fonts များမှာ Mon3,Yunghkio, Myanamr3 စသည်များ အသုံးပြုနိုင်သည်။ Unicode Guide ကို ဒီမှာ Download ချပါ။ Zawgyi to Unicode Converter
Don't share ebook or software if nobody request. You can find free book websites on here. We are welcome for discussion or asking question instead.

Cannot print Myanmar characters from Slip Printer

edited October 2017 in PHP

I am trying to print out slips in Myanmar language from a slip printer.
But, I am only getting Chinese characters in stead of what I typed.
I would like to request some suggestions on this.

<!DOCTYPE html>
<html lang="my">
    <meta charset="utf-8"/>
        $cutpaper = $esc."m";

        $string = "ကခနပဖ";  
        //$string .= "100110111001101110011011"; 
        //$string .= "This is the end\n";
        //$string = utf8_encode($string);
        $string .= $cutpaper;

        $port = "9100";
        $host = "";
        $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
        if ($socket === false) {
            echo "socket_create() failed: reason: " . socket_strerror(socket_last_error    ()) . "\n";

        $result = socket_connect($socket, $host, $port);
        if ($result === false) {
            echo "socket_connect() failed.\nReason: ($result) " . socket_strerror    (socket_last_error($socket)) . "\n";
        echo $string;
        socket_write($socket, $string, strlen($string));


Sign In or Register to comment.