How to printf accented characters in ANSI C (like á é í ó ú)
问题 I tried to printf with some accented characters such as á é í ó ú : printf("my name is Seán\n"); The text editor in the DEVC++ IDE displays them fine - i.e the source code looks fine. I guess I need some library other than stdio.h and maybe some variant of the normal printf . I'm using IDE Bloodshed DEVC running on Windows XP. 回答1: Windows console is generally considered badly broken regarding to character encodings. You can read about this problem here, for example. The problem is that