How do I get , and ?

This is a discussion on How do I get , and ? within the C++ Programming forums, part of the General Programming Boards category; When I run a program with the line: cout << "Hvordan gr det med deg?\n;" ("How are you", in Norwegian) ...

  1. #1
    Unregistered
    Guest

    How do I get , and ?

    When I run a program with the line:

    cout << "Hvordan gr det med deg?\n;"

    ("How are you", in Norwegian)

    The '' won't show.. It shows up as "Hvordan gr det med deg?"
    How do I fix this? I'd be really happy if someone helped me with this. We're having a project at school. Usually I program in English, but I have to use Norwegian for this.

  2. #2
    Registered User Dual-Catfish's Avatar
    Join Date
    Sep 2001
    Posts
    802
    Try

    cout << cout << "Hvordan g" << (char) 0x86 << "r det med deg?\n";

  3. #3
    Registered User
    Join Date
    Sep 2001
    Posts
    305
    i dunno, but ascii wouldnt work because thats the american standard. isnt there a norwegian standard? try to find a reference to that. google will always be there for you.

  4. #4
    Registered User Dual-Catfish's Avatar
    Join Date
    Sep 2001
    Posts
    802
    (char) 0x86 == , I don't see why it wouldn't work. ASCII is pretty much universal anyway, thats why characters like that and a whole bunch of others are built into the ASCII standard.

  5. #5
    Registered User
    Join Date
    Jan 2002
    Posts
    559
    I don't know the answer to this question, but isn't that why Unicode was developed, to take care of these issues? Java uses Unicode, don't know how C++ implements it.

  6. #6
    Unregistered
    Guest

    Smile Thx guys! :)

    You helped me a lot!! Thx =)

  7. #7
    Unregistered
    Guest
    Where can I find the code for the individual characters? I know that 0x86 is , and that 0x92 is and 0x93 is .
    What is and and ? Is there a list somewhere or something?

  8. #8
    Registered User Dual-Catfish's Avatar
    Join Date
    Sep 2001
    Posts
    802

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21