Using Swedish characters in C?

This is a discussion on Using Swedish characters in C? within the C Programming forums, part of the General Programming Boards category; Hi! Being a beginner at C I would like to know if there is an easy way of using the ...

  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". Heres 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, 11:39 PM
  2. HELP!!!!emergency Problem~expert please help
    By unknowppl in forum C++ Programming
    Replies: 9
    Last Post: 08-21-2008, 07:41 PM
  3. Replies: 10
    Last Post: 07-10-2008, 04: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, 07:05 AM
  5. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 05:54 PM

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