1. ~/config/environment.rb : end 뒤에 $KCODE = 'u' 추가
...
# Make Active Record use UTC-base instead of local time
# config.active_record.default_timezone = :utc
# See Rails::Configuration for more options
end
$KCODE = 'u'
2. ~/config/database.yml : 각각의 데이터베이스 설정 뒤에 encoding: utf8 부분 추가
development:
adapter: XXX
database: XXX_development
username: XXX
password: XXX
host: XXX
encoding: utf8
test:
adapter: XXX
database: XXX_development
username: XXX
password: XXX
host: XXX
encoding: utf8
production:
adapter: XXX
database: XXX_development
username: XXX
password: XXX
host: XXX
encoding: utf8
3. 문서파일 생성시 utf-8 형식으로 만들어야 함
...
# Make Active Record use UTC-base instead of local time
# config.active_record.default_timezone = :utc
# See Rails::Configuration for more options
end
$KCODE = 'u'
2. ~/config/database.yml : 각각의 데이터베이스 설정 뒤에 encoding: utf8 부분 추가
development:
adapter: XXX
database: XXX_development
username: XXX
password: XXX
host: XXX
encoding: utf8
test:
adapter: XXX
database: XXX_development
username: XXX
password: XXX
host: XXX
encoding: utf8
production:
adapter: XXX
database: XXX_development
username: XXX
password: XXX
host: XXX
encoding: utf8
3. 문서파일 생성시 utf-8 형식으로 만들어야 함

