• ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
Experiencing 'Printer Blocked' or 'Printer Error' message? Click here for more information.
Check some of the most frequent questions about Instant Ink: HP INSTANT INK, HP+ PLANS: INK AND TONER.


Check out our Black or Color Ink Not Printing, Other Print Quality Issues info about: Print quality and Cartridge Issues.
HP Recommended

Dear Support

 

I was trying to print the chinese font from PCL commands

it prints only korean, regardless what font type I have assigned 

I have already assigned the code into <esc>(18N<esc>(s1pXXv0s0b17007T

 

my printer is M602n, it comes with Disk Resident Fonts Japanese, Korean, T- Chinese, S- Chinese

 

Can anyone please help ?

 

 

Thanks,

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
HP Recommended

I don't have access to a LaserJet M602n printer, so don't know much about its capabilities.

 

Substituting 12 for the XX point size in your skeleton PCL escape sequence:

 

<Esc>(18N         Primary Font: Symbol Set (18N = Unicode)
<Esc>(s1p         Primary Font: Spacing: Proportional
       12v        Primary Font: Height (12 points)
       0s         Primary Font: Style (Upright, solid)
       0b         Primary Font: Stroke Weight: Medium
       17007T     Primary Font: Typeface (identifier = 17007)

 

shows that you are selecting a font:

  • Which supports the 18N (= Unicode) symbol set; all printer resident unbound scalable encapsulated TrueType fonts should theoretically therefore be candidates.
  • Which is proportionally-spaced and available in the selected point size
  • With typeface identifier 17007 - I've no idea whether or not this is a printer-resident font on the M602 model.

 

However, to select characters with character codes outside of the single-byte 0x20->0xff range using Unicode code-points (of necessity two-bytes or more, since they are larger than 0xff), you also have to select the appropriate Text Parsing Mode; for Unicode this would be:

 

<Esc>&t83P        Text Parsing Method: UTF-8

The required code-points then have to be specified using the (two-byte or more) UTF-8 encoding of the Unicode code-point values (so, for example, U+100 would be encoded as 0xc480); I don't know, off-hand, which Unicode sub-ranges are used for Chinese language characters.

 

There are other values of the Text Parsing Mode sequence to select, but I'm not very familiar with any of them:

 

<Esc>&t0P   Text Parsing Method: 1-byte
<Esc>&t1P   Text Parsing Method: 1-byte
<Esc>&t2P   Text Parsing Method: 2-byte
<Esc>&t21P  Text Parsing Method: 1|2-byte Asian 7bit
<Esc>&t31P  Text Parsing Method: 1|2-byte Shift-JIS
<Esc>&t38P  Text Parsing Method: 1|2-byte Asian 8bit

 

which can be used with some other Asian symbol sets (if the printer supports them), but I don't know the details off-hand.

View solution in original post

7 REPLIES 7
HP Recommended

I don't have access to a LaserJet M602n printer, so don't know much about its capabilities.

 

Substituting 12 for the XX point size in your skeleton PCL escape sequence:

 

<Esc>(18N         Primary Font: Symbol Set (18N = Unicode)
<Esc>(s1p         Primary Font: Spacing: Proportional
       12v        Primary Font: Height (12 points)
       0s         Primary Font: Style (Upright, solid)
       0b         Primary Font: Stroke Weight: Medium
       17007T     Primary Font: Typeface (identifier = 17007)

 

shows that you are selecting a font:

  • Which supports the 18N (= Unicode) symbol set; all printer resident unbound scalable encapsulated TrueType fonts should theoretically therefore be candidates.
  • Which is proportionally-spaced and available in the selected point size
  • With typeface identifier 17007 - I've no idea whether or not this is a printer-resident font on the M602 model.

 

However, to select characters with character codes outside of the single-byte 0x20->0xff range using Unicode code-points (of necessity two-bytes or more, since they are larger than 0xff), you also have to select the appropriate Text Parsing Mode; for Unicode this would be:

 

<Esc>&t83P        Text Parsing Method: UTF-8

The required code-points then have to be specified using the (two-byte or more) UTF-8 encoding of the Unicode code-point values (so, for example, U+100 would be encoded as 0xc480); I don't know, off-hand, which Unicode sub-ranges are used for Chinese language characters.

 

There are other values of the Text Parsing Mode sequence to select, but I'm not very familiar with any of them:

 

<Esc>&t0P   Text Parsing Method: 1-byte
<Esc>&t1P   Text Parsing Method: 1-byte
<Esc>&t2P   Text Parsing Method: 2-byte
<Esc>&t21P  Text Parsing Method: 1|2-byte Asian 7bit
<Esc>&t31P  Text Parsing Method: 1|2-byte Shift-JIS
<Esc>&t38P  Text Parsing Method: 1|2-byte Asian 8bit

 

which can be used with some other Asian symbol sets (if the printer supports them), but I don't know the details off-hand.

HP Recommended

... and if the fonts are disk-resident, then:

 

  • You may need to use something like the Alphanumeric ID escape sequence, with appropriate associated data, to load the required disk-resident font into the printer's volatile memory.
  • You need to ascertain if these fonts are bound to a particular symbol set, or are unbound (in which case the font must have the correct Character Complement bits set in its header).
HP Recommended

Hi dansdaduk,

 

thanks for the exlaintation, I was printing with chinese font card, the primary font set started with

<Esc>(18C

 

and the printer font set is now 

<Esc>(18N 

 

do I need to change my chinese character from ASCII coding into UNICODE?

 

 

HP Recommended

do you know how should I input the characters?

I used to input character like this 

空腹血ç³

 

how can I input them with for precise method like 

passing UTF code number 0xc480

 

HP Recommended
Can someone help me set up Chinese character using strokes, instead of pinyin? I have a MacBook but using Microsoft Word. Apple staff can't help to figure out how to use Chinese characters. Hence, I am seeking help from this community.
HP Recommended

@Steven_Tsai

 

>> ... do I need to change my chinese character from ASCII coding into UNICODE? ...

 

I'm not sure exactly what you mean by this - the ASCII coded-character set is (strictly) a 7-bit set, and only contains 128 characters (33 of which are non-graphic control-codes), and does not include any Chinese or Korean characters at all.

 

What I suspect you mean is that you are currently using something like the Simplified Chinese GB-2312-80 coded character set (18C, I think, in terms of HP symbol sets), which is a mixed 1-byte/2-byte character set with a particular encoding - I think that the relevant Text Parsing Method is probably 38 (1- or 2- byte Asian 8-bit) .

 

If you want to use the Unicode symbol set (with Text Parsing Method 83) you'd have to translate all of your existing data to the Unicode encoding.

 

 

>> ... I used to input character like this ç©ºè…¹è¡€ç³

>> ... how can I input them with for precise method like passing UTF code number 0xc480

 

The character view is presumably how your application is decoding the characters as a byte stream; the 'UTF code number' shown in the example is merely the (much more precise) hexadecimal encoding of the multiple bytes which define one of those characters.

HP Recommended

@Dage

 

>> ... Can someone help me set up Chinese character using strokes, instead of pinyin? ...

 

I certainly can't.

 

To get more responses, you should start a new question (using the Post new question button), although I don't really know which would be the relevant discussion board to post it in, sorry.

† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.