diff --git a/root/editor.css b/root/editor.css index e109d96..7651e4d 100644 --- a/root/editor.css +++ b/root/editor.css @@ -8,7 +8,7 @@ textarea {height:300px; width:500px; margin-bottom: 20px;} -di#result{ +div#result{ background-color: black; color: white; height: 300px; diff --git a/root/editor.rb b/root/editor.rb index bcfa10c..3fde2ce 100755 --- a/root/editor.rb +++ b/root/editor.rb @@ -9,7 +9,7 @@ #ENV['RUBYOPT']="-Ku" -c = CGI.new(:accept_charset => "ascii-8bit") +c = CGI.new(:accept_charset => "UTF-8") p = " i = 1 diff --git a/root/textcode.rb b/root/textcode.rb index 823f950..3ea66ca 100755 --- a/root/textcode.rb +++ b/root/textcode.rb @@ -56,8 +56,8 @@ puts("

入力したコード

") printf("\n", coderead) puts("

実行結果

") -puts("
") +puts("
") printf("
%s
\n", CGI.escapeHTML(o)) puts("
") @@ -66,8 +66,8 @@ if namae == "" ptag("名前が入力されていません!名前を入力して下さい。") else - db.execute("insert into ranking (id, name) values (?, ?)",coderead , namae) - puts("

ランキングに書き込みました!

") + #db.execute("insert into ranking (id, name) values (?, ?)",coderead , namae) + #puts("

ランキングに書き込みました!

") end if $e == "" puts("

エラー文

")