Current Position:Home > Problem to display at the shell a smile or other sign

Problem to display at the shell a smile or other sign

Update:10-11Source: network consolidation
Advertisement
My Problem is, I write with c++ a programm. I would like draw on display other sign. I get the sign ? for the sign smile.
I can not use the  extended ascii tabelle on c++.
thank for answer.

The Best Answer

Advertisement
With "shell", do you mean it's a Terminal program?
The Terminal can display "extended ASCII" extremely well (*) ( the proper term is "any Unicode string"), but it only accepts UTF8 encoded strings. So to display a smiley character (U+263A), you would send the string "\xE2\x98\xBA" to the screen.
(*) The Terminal is smart enough to find an appropriate font for just about any character code you want to display, it's not limited to just using the character repertoire of your default shell font.
  • Problem to display at the shell a smile or other sign Update:10-11

    My Problem is, I write with c++ a programm. I would like draw on display other sign. I get the sign ? for the sign smile. I can not use the  extended ascii tabelle on c++. thank for answer.With "shell", do you mean it's a Terminal program? The T

  • Problem in displaying the TaxRate columns . Update:10-11

    Hi Experts,                         I am having a problem in displaying the 'TaxRate', in this Query there are some different Taxrate's columns  like-  ' 'Basic Excise Duty [email protected] %',  ' Education [email protected]% ' , 'Secondary Education Cess @1%',    etc.  

  • Problem with displaying BLOB images on JSP page using a servlet Update:10-11

    hi. I have a big problem with displaying BLOB images using JSP. I have a servlet that connects to the oracle database, gets a BLOB image , reads it, and then displays it using a BinaryStream. The problem is , this works only when i directly call that

  • Problem with display of JScrollPane Update:10-11

    I have made a small GUI. It has a JFrame and four JPanels are added to the frame. The placement is done by program and hence layout manager is set to null. Two of the panels contain JScrollPane. One scroll pane is associated with a JList. Another scr

  • Problem with display of Buttons in ADF Update:10-11

    Hi All, I had a strange problem in display of the ADF Page in one of the server.I had two buttons inside ToolBars, The UI was coming fine in the two WLS, But when I deployed the application in third WLS, I was seeing that Buttons are coming in the to

  • Problem with display driver Update:10-11

    Hello, Im using Photoshop CC and when it starts up it sometimes gives me this error message: 'Problem with display driver and has temporary disabled enhancements which use graphics hardware.' What does this mean? Then it tells me to download the lats

  • I have a early 2011 Macbook pro 13 inch, I'm running Lion 10.7.4, and i want to upgrade to 10.8 Mountain Lion. Is it safe for my computer or are people experiencing problems with displays and Battery life? Update:10-11

    I have a early 2011 Macbook pro 13 inch, I'm running Lion 10.7.4, and i want to upgrade to 10.8 Mountain Lion. Is it safe for my computer or are people experiencing problems with displays and Battery life? Do Not post stuff about how Airplay doesnt w

  • Authorization problem when displaying icons in BW Report Update:10-11

    Hi All I have the following problem when display BW Report as iView: The report data itself is displayed perfectly but to display the icons (like DrillDown arrows, Hierarhy level open arrows) the Windows login message "Connect to <my BW server.com

  • Problem to display a negative number in XML Publisher output in excel Update:10-11

    Hi All, I am facing problem in displaying a negative number in XML Publisher output in excel. My requirement is that I have to display a negative number in brackets when the output is taken in excel format. Eg: If the value is -123 then i have to dis

  • Problem in display line items in FS10N Update:10-11

    Hi all,            I have checked ,check box in G/L account  "Line items display "  in FS00 in current period ( 4 / 2014 )after that line items get displayed in FS10N for this period . There is problem in displaying line items for same  G/L acco