Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Chinese language cannot correctly display in qnx4.25/pterm. : (2 Items)
   
Chinese language cannot correctly display in qnx4.25/pterm.  
Create the hello.c file and save it as UTF-8 format
Main void ()
{
While (1)
{
Printf ("中国人");
}
}
 I put the file into UTF8 format ,Compile and run on the console display garbled, how to solve?,

thanks....
Re: Chinese language cannot correctly display in qnx4.25/pterm.  
Hi, 

UTF-8 is not supported. You can use encoding from the list from "ptermcs".
You'll need chinese font for pcterm with .phf extension. Copy font in /qnx4/photon/font/, install it with "fontcfg" 
utility and restart photon.

Also you'll need a charsets file with .cs extension. You can create it with "ptermcs" utility.
Then select font in "Customize font list" of your pterm (Properties => Text Font => Customize), specify charsets file, 
select your font and add it to the list. Then select your font in pterm setting Text Font (Properties => Text Font).

Best regards,
Fedor