WOONO's Blog






Ubuntu 12.04 - UTF8 한글 깨짐 해결 방법




"Totem Player", "Rhythmbox " 등에서 "UTF-8" 로 설정 할 경우 한글이 깨지는데 근본적인 해결책은 UTF-8 을 사용하는 것이 맞지만 대부분의 국내 사용자 환경은 "EUC-KR" 이기 때문에 아래 방법대로 하면 해결된다.



- 범용 profile

etc/profile


- 개인 사용자용 profile

~/.profile


둘 중 아무 파일이나 수정을 해도 된다.



$ sudo vi /etc/profile


or


$ sudo vi ~/.profile




/etc/profile



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
 
if [ "$PS1" ]; then
  if [ "$BASH" ] && [ "$BASH" != "/bin/sh" ]; then
    # The file bash.bashrc already sets the default PS1.
    # PS1='\h:\w\$ '
    if [ -f /etc/bash.bashrc ]; then
      . /etc/bash.bashrc
    fi
  else
    if [ "`id -u`" -eq 0 ]; then
      PS1='# '
    else
      PS1='$ '
    fi
  fi
fi
 
# The default umask is now handled by pam_umask.
# See pam_umask(8) and /etc/login.defs.
 
if [ -d /etc/profile.d ]; then
  for i in /etc/profile.d/*.sh; do
    if [ -r $i ]; then
      . $i
    fi
  done
  unset i
fi
 
###############################################################
# 아래 두 라인을 추가한다
###############################################################
export GST_TAG_ENCODING=cp949   #for mp3 file
export GST_ICY_TAG_ENCODING=cp949   # for radio



위와 같이 수정했으면 저장 하고 ubuntu 를 "재 시작" 한다.





Posted by woono