Printing Chinese on Printer
| From: | Nick Lee | Date: | Mon, 04 Apr 2005 04:59:33 +0000 |
| Subject: | Printing Chinese on Printer | ||
| Groups: | php.i18n | ||
| Request: | Send a blank email to php-i18n+get-852@lists.php.net to get a copy of this message | ||
Hi,
I'm trying to print Chinese to a printer using PHP's
printer module (php_printer.dll). My platform is W2K,
English. I've printed Chinese successfully from
Notepad, so I know the printer can print Chinese.
I send the bytes to the printer using
printer_draw_text(). The printer just intreprets the
bytes as ascii characters, and prints out a string of
those weird characters. I've used
mb_convert_encoding() to convert the string to UTF-8
format before sending it to printer, but the result is
just another string of weird ascii characters.
So, where is the problem? How do I force the printer
to interpret the bytes in another encoding? Or ...
should I convert the bytes into another encoding, such
as UTF-7, UTF-16, etc???????
Thanks in advance for any help,
Nick
______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca