Skip to content

Commit 8e5a6d0

Browse files
committed
Try to fix non ASCII character, BIS
1 parent ed6751f commit 8e5a6d0

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

core/src/main/scala/com/colisweb/jruby/concurrent/constant/memory/excel/ConcurrentConstantMemoryExcel.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,13 @@ import org.apache.poi.xssf.streaming.SXSSFWorkbook
1717
import scala.annotation.switch
1818
import scala.collection.immutable.SortedSet
1919
import scala.collection.mutable.ListBuffer
20+
import scala.io.Codec
2021

2122
sealed abstract class Cell extends Product with Serializable
2223
object 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

0 commit comments

Comments
 (0)