#!/usr/bin/env ruby # coding: utf-8 require'cgi' c = CGI.new(:accept_charset => "UTF-8") print <<EOF Content-type: text/html; charset=utf-8 <!DOCTYPE html> <html> <head> <meta charset=utf-8> <title>テキストエディタ読み込み</title> <link rel="stylesheet" type="text/css" href="root/editor.css"> <style> </style> </head> <body> <form method="POST" action="./textcode.rb"> <textarea name="example">ここに入力</textarea> <input type="submit" value="Let Go"> <input type="reset" value="reset"> </form> </body> </html> EOF