å æ¥MinGWã¨ããgccã³ã³ãã¤ã©ãã¤ã³ã¹ãã¼ã«ããã®ã§ãããUTF-8ã§ä¿åããCè¨èªã½ã¼ã¹ã³ã¼ããWindowsã®ã³ãã³ãããã³ããã§ã³ã³ãã¤ã«ãå®è¡ãããè¦äºæååããã¾ããã gccã®ã³ã³ãã¤ã©å´ã®ã¹ã¤ãã㧠gcc test.c -finput-charset=UTF-8 -fexec-charset=CP932 ãªã©ã§ã¯ãã¾ããããªãã£ããããä¸è¨æ¹æ³ã«ãã©ãã¤ãã¾ããã åç¾ã¤ã¡ã¼ã¸ æ®éã«gcc ***.cã¨ãã¦ã³ã³ãã¤ã«ãã¦ä½æãããå®è¡ãã¡ã¤ã«a.exeããã®ã¾ã¾å®è¡ãã¦ã¿ãã è¦äºã«æååãï¼ æ¬¡ã«ã³ãã³ãããã³ãããUTF-8ã®æåã³ã¼ãåºåã«å¯¾å¿ãããã³ãã³ã chcp 65001 ãå®è¡ãï¼å®è¡å¾ã¯ãã³ãã³ãããã³ããç»é¢ã®æ å ±ãã¯ãªã¢ãããå é è¡ã«ãActive code page: 65001ãã¨è¡¨ç¤ºããã¾ãï¼ å度a.exeãå®è¡ãã¦ã¿ãã¨â¦ æååãã
{{#tags}}- {{label}}
{{/tags}}