Thread: Where is my extended wide character ?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Nov 2005
    Posts
    20

    Where is my extended wide character ?

    Hello,

    I am writing here because I can no wprintf() the BOX DRAWING SET character under Linux.

    When I specify character number arround U+0x2500 I obtain a "+" character as box corner ; not a real corner. As horizontal line I get "-" (minus) instead of full line. My drawn line contains blank not full line.

    I have set many times the "setfont" command but no effect.

    Some times I can obtain character set by typing ALT+number but this number is far away of BOX DRAWING SET range according to the UNICODE table then I have not port this number inside my code.

    My code look like this:

    #include <wide char>
    #include <stdio>
    #include <locale>

    wchar_t t;

    t= arround 0x2500;
    wprintf(L"%lc\n", t);


    Thank you.
    Last edited by intmail; 02-12-2006 at 09:57 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Errors including <windows.h>
    By jw232 in forum Windows Programming
    Replies: 4
    Last Post: 07-29-2008, 01:29 PM
  2. sequential file program
    By needhelpbad in forum C Programming
    Replies: 80
    Last Post: 06-08-2008, 01:04 PM
  3. Remove character from string
    By nooksooncau in forum C Programming
    Replies: 11
    Last Post: 06-05-2006, 09:37 AM
  4. about wide character and multiple byte character
    By George2 in forum C Programming
    Replies: 3
    Last Post: 05-22-2006, 08:11 PM
  5. Character handling help
    By vandalay in forum C Programming
    Replies: 18
    Last Post: 03-29-2004, 05:32 PM