๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

์ธ์ฝ”๋”ฉ2

[Python] print ์ถœ๋ ฅ ์‹œ ํ•œ๊ธ€ ๊นจ์ง ํ˜„์ƒ ํŒŒ์ด์ฌ print ์ถœ๋ ฅ์‹œ ํ•œ๊ธ€ ๊นจ์ง ํ˜„์ƒ์ด ์ƒ๊ฒผ๋‹ค. code runner ์„ค์น˜ ์ „ ํ„ฐ๋ฏธ๋„์— ์ถœ๋ ฅ๋ ๋•Œ๋Š” ์ด์ƒ์ด ์—†์—ˆ๋Š”๋ฐ ํ™•์žฅ ์„ค์น˜ ํ›„ ์ถœ๋ ฅ์ฐฝ์— ์ถœ๋ ฅ๋˜๋‹ˆ ํ•œ๊ธ€์ด ์ œ๋Œ€๋กœ ๋‚˜์˜ค์ง€ ์•Š๋Š” ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒ. ์‹œ์Šคํ…œ ๋ณ€์ˆ˜์— ํ™˜๊ฒฝ๋ณ€์ˆ˜๋ฅผ ์ถ”๊ฐ€ํ•ด ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ–ˆ๋‹ค! PYTHONIOENCODING utf-8 ํ™˜๊ฒฝ๋ณ€์ˆ˜ ์ถ”๊ฐ€ ํ›„ vs์ฝ”๋“œ ์žฌ์‹คํ–‰ํ•˜๋ฉด ํ•œ๊ธ€์ด ์ •์ƒ์ ์œผ๋กœ ๋ณด์—ฌ์ง„๋‹ค. 2024. 4. 8.
Java - ์ดํด๋ฆฝ์Šค ํ™˜๊ฒฝ ์„ค์ • ์ธ์ฝ”๋”ฉ ์ •๋ณด์˜ ํ˜•์‹์„ ๋ณ€ํ™˜ํ•˜๋Š” ์ฒ˜๋ฆฌ ๋ฐฉ์‹์„ ์˜๋ฏธํ•˜๋ฉฐ ๋ฌธ์ž ์ธ์ฝ”๋”ฉ์€ ๋ฌธ์ž๋“ค์˜ ์ง‘ํ•ฉ์„ ๋ถ€ํ˜ธํ™”, ์ฝ”๋“œํ™” ํ•˜๋Š” ๊ฒƒ์ด๋‹ค. ์ธ์ฝ”๋”ฉ ์„ค์ •์„ ํ•˜์ง€ ์•Š์„ ๊ฒฝ์šฐ ์ƒ์„ฑ๋œ ํ”„๋กœ์ ํŠธ์˜ ํ•œ๊ธ€์ด ๊นจ์ง€๋Š” ํ˜„์ƒ์ด ๋ฐœ์ƒํ•˜๊ธฐ ๋•Œ๋ฌธ์— ํ”„๋กœ์ ํŠธ ์ž‘์—…์‹œ ์ดํด๋ฆฝ์Šค์—์„œ ๊ฐœ๋ฐœ ํ™˜๊ฒฝ์˜ ์ธ์ฝ”๋”ฉ์„ ์„ค์ •ํ•ด์ค˜์•ผ ํ•œ๋‹ค. ์„ค์ •๊ฐ’์€ ํ•œ๊ธ€์˜ ๊ฒฝ์šฐ ์œ ๋‹ˆ์ฝ”๋“œ(Unicode Transformation Format - 8bit, UTF-8) ์œผ๋กœ ์ž‘์„ฑ. ์ธํ„ฐ๋„ท ์‚ฌ์ดํŠธ์—์„œ ๊ฐ€์žฅ ๋งŽ์ด ์“ฐ์ด๊ณ  ์žˆ๋‹ค. ์ดํด๋ฆฝ์Šค์—์„œ ์ธ์ฝ”๋”ฉ UTF-8๋กœ ์„ค์ •ํ•˜๊ธฐ ํ”„๋กœ์ ํŠธ ์˜คํ”ˆ ํ›„ ์ดํด๋ฆฝ์Šค ์ƒ๋‹จ ๋ฉ”๋‰ดํ‘œ์‹œ์ค„ [ Window -> Preference ] ์ƒ๋‹จ ๊ฒ€์ƒ‰์ฐฝ [ enc ์ž‘์„ฑ -> ์•„๋ž˜ ํ•ญ๋ชฉ์˜ Content Types ํด๋ฆญ -> text ํ•ญ๋ชฉ ์„ ํƒ ํ›„ ํ•˜๋‹จ ํ…์ŠคํŠธ ๋ฐ•์Šค์— 'UTF-8' ์ž‘์„ฑ ] ์™ผ.. 2023. 7. 1.