UNICODE

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Anarki

    UNICODE

    I would like to print a string in unicode. I compiled using gcc 3.4.4
    in Cygwin(windows Xp). I used the following code. Gcc compiles it and
    links but not giving the expected output, g++ don't even compile it,
    it says wprintf is undeclared. I would also like to know why gcc
    compiles it and g++ dosen't. someone please help me print a unicode
    string using gcc or g++ in cygwin(windows xp)


    #include <wchar.h>
    int main()
    {
    wchar_t mal[] = L"ദീപ്⠀Œà´šà´¨àµà´¦à µâ€Œ പി";
    wprintf(mal);
    return 0;
    }
  • James Kanze

    #2
    Re: UNICODE

    On Jul 7, 10:52 am, Michael DOUBEZ <michael.dou... @free.frwrote:
    Anarki a écrit :
    excuse me what u mean by properly configured console? I
    think i haven't done any configuring can you please guide me
    am a novice in configuring this cygwin all these days i was
    in visual studio,
    I mean your console should be configured to display unicode.
    echo "$LC_ALL"
    Should tell you if you have the good locale.
    Maybe. Something like "env | grep LC_" and perhaps echo "$LANG"
    might be useful as well. However...

    I'm not too sure how CygWin works here; with an xterm, what
    counts is the font the console is using, and I wouldn't be
    surprised if there aren't dependencies with regards to the font
    and/or code page of the window as well.

    --
    James Kanze (GABI Software) email:james.kan ze@gmail.com
    Conseils en informatique orientée objet/
    Beratung in objektorientier ter Datenverarbeitu ng
    9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34

    Comment

    Working...