File tree Expand file tree Collapse file tree
core/src/main/scala/com/colisweb/jruby/concurrent/constant/memory/excel Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ More infos about this file : http://keepachangelog.com/
66
77## [ Unreleased] - no_due_date
88
9+ - ** Try to fix non ASCII character, BIS**
910- ** Rollback "Try to fix non ASCII character": it doesn't fix the problem.**
1011
1112## [ v1.0.3] - 2019.04.26
Original file line number Diff line number Diff line change @@ -17,9 +17,13 @@ import org.apache.poi.xssf.streaming.SXSSFWorkbook
1717import scala .annotation .switch
1818import scala .collection .immutable .SortedSet
1919import scala .collection .mutable .ListBuffer
20+ import scala .io .Codec
2021
2122sealed abstract class Cell extends Product with Serializable
2223object Cell {
24+
25+ private [this ] implicit final val codec : Codec = Codec .UTF8
26+
2327 private [excel] final case object BlankCell extends Cell
2428 private [excel] final case class StringCell (value : String ) extends Cell
2529 private [excel] final case class NumericCell (value : Double ) extends Cell
@@ -62,9 +66,12 @@ object ConcurrentConstantMemoryExcel {
6266
6367 import kantan .csv ._
6468 import kantan .csv .ops ._
69+ // https://nrinaudo.github.io/kantan.csv/bom.html
70+ import kantan .codecs .resource .bom ._
6571
6672 private [excel] type Row = Array [Cell ]
6773
74+ private [this ] implicit final val codec : Codec = Codec .UTF8
6875 private [this ] implicit final val scheduler : Scheduler =
6976 Scheduler .computation(name = " ConcurrentConstantMemoryExcel-computation" )
7077
You can’t perform that action at this time.
0 commit comments