ncurses对话框显示qqqq / xxxx行而不是行

时间:2013-05-03 18:21:04

标签: dialog ncurses

对话框 - 版本 - >版本:1.0-20051107
我有两台机器,RHEL5 linux,相同版本的对话框。 在机器A上,我的对话框渲染得很好。在机器B上,我得到相同的颜色和阴影,但是用ascii字母渲染线条如下:

lqqqqqqqk
x       x
x       x
mqqqqqqqj

即使使用如下的简单调用,也会出现此问题:
    dialog --menu Main 16 60 9 1查看

两台机器都有ncurses-5.5-24.20060715 两台机器都将TERM环境变量显示为'xterm' 两台机器都将语言环境显示为LANG = en_US.UTF-8

知道机器B有什么问题吗?

1 个答案:

答案 0 :(得分:1)

// Creating the new document...
$phpWord = new \PhpOffice\PhpWord\PhpWord();

/* Note: any element you append to a document must reside inside of a Section. */

 // Adding an empty Section to the document...
$section = $phpWord->addSection();

// Adding Text element to the Section having font styled by default...
$section->addText(
    htmlspecialchars(
        '"Learn from yesterday, live for today, hope for tomorrow. '
            . 'The important thing is not to stop questioning." '
            . '(Albert Einstein)'
    )
);

// Saving the document as HTML file...
$objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'HTML');
$objWriter->save('helloWorld.html');


  [1]: https://stackoverflow.com/a/31627457/1873569

将解决您的问题:)