summaryrefslogtreecommitdiffhomepage
path: root/examples/example.rb
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2011-11-23 22:21:37 +0900
committerRandy Morgan <[email protected]>2011-11-23 22:21:37 +0900
commit044afe5a35db42cefce4f18a0fecc3da90cab1b5 (patch)
treeda20adada3242e38bb176f97bd80dee837ac8f6b /examples/example.rb
parentc8c63518b4d58ca8875f81602792050cbec318f2 (diff)
downloadcaxlsx-044afe5a35db42cefce4f18a0fecc3da90cab1b5.tar.gz
caxlsx-044afe5a35db42cefce4f18a0fecc3da90cab1b5.zip
fixing some typos
Diffstat (limited to 'examples/example.rb')
-rw-r--r--examples/example.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/example.rb b/examples/example.rb
index 15b2205c..50a3edb4 100644
--- a/examples/example.rb
+++ b/examples/example.rb
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
require 'rubygems'
require 'axlsx'
@@ -97,3 +98,13 @@
end
end
p.serialize("example7.xlsx")
+
+
+#Japanese Support
+
+ p = Axlsx::Package.new
+ p.workbook.add_worksheet do |sheet|
+ sheet.add_row ["日本語の表意","ちゃんと出来るかな"]
+ sheet.add_row ["<div>","escaped?"]
+ end
+ p.serialize("example8.xlsx")