Thread: Using Swedish characters in C?

  1. #1
    johanbilen
    Guest

    Question Using Swedish characters in C?

    Hi!

    Being a beginner at C I would like to know if there is an easy way of using the swedish characters "åäö" in strings ie changing the character-map (not printf("%c%c%", x,x,x).
    I use Visual C++ 6.0 under Windows2000.
    Perhaps a pre-processor directive "#include" would to the trick?

    Thankful for help
    /Johan

  2. #2
    Registered User
    Join Date
    Oct 2001
    Posts
    197
    The ASCII-codes 128-255 include very much special charcacters like "éàaöüß". Here´s a program that lists the ASCII-characters 128-255.
    Code:
    #include<stdio.h>
    
    main(void)
    {
     char count;
     for(count=128;count<256;count++)
     printf("%d %c\n", count, count);
    }
    When I close my eyes nobody can see me...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A development process
    By Noir in forum C Programming
    Replies: 37
    Last Post: 07-10-2011, 10:39 PM
  2. HELP!!!!emergency Problem~expert please help
    By unknowppl in forum C++ Programming
    Replies: 9
    Last Post: 08-21-2008, 06:41 PM
  3. Replies: 10
    Last Post: 07-10-2008, 03:45 PM
  4. How do you check how many characters a user has entered?
    By engstudent363 in forum C Programming
    Replies: 5
    Last Post: 04-08-2008, 06:05 AM
  5. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 04:54 PM