Thread: How do I get æ, ø and å?

  1. #1
    Unregistered
    Guest

    How do I get æ, ø and å?

    When I run a program with the line:

    cout << "Hvordan går det med deg?\n;"

    ("How are you", in Norwegian)

    The 'å' won't show.. It shows up as "Hvordan gõr 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