mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
force encoding to utf-8 for external
This commit is contained in:
parent
dcb224bf31
commit
3a1bdb38fd
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@ ENV['RACK_ENV'] ||= 'development'
|
|||
ENV['TZ'] = 'UTC'
|
||||
DIR_ROOT = File.expand_path File.dirname(__FILE__)
|
||||
Encoding.default_internal = 'UTF-8'
|
||||
Encoding.default_external = 'UTF-8'
|
||||
|
||||
require 'yaml'
|
||||
require 'json'
|
||||
|
@ -43,4 +44,4 @@ DB.loggers << Logger.new(STDOUT) if ENV['RACK_ENV'] == 'development'
|
|||
|
||||
if ENV['RACK_ENV'] == 'development' && Server.count == 0
|
||||
Server.create ip: '127.0.0.1', slots_available: 999999
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue