Skip to content

Commit

Permalink
specify correct encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgu committed Jan 5, 2021
1 parent ae0e7fe commit 74ce6da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/precomputed-tables.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


(defvar *unicode-data*
(with-open-file (in (uiop:merge-pathnames* *data-directory* "UnicodeData.txt") :external-format :ISO-8859-1)
(with-open-file (in (uiop:merge-pathnames* *data-directory* "UnicodeData.txt") :external-format :UTF-8)
(loop for line = (read-line in nil nil)
while line
collect (cl-ppcre:split ";" line))))
Expand Down Expand Up @@ -41,7 +41,7 @@


(defparameter *composition-exclusions-data* (make-hash-table))
(with-open-file (in (uiop:merge-pathnames* *data-directory* "CompositionExclusions.txt" :external-format :ISO-8859-1))
(with-open-file (in (uiop:merge-pathnames* *data-directory* "CompositionExclusions.txt" :external-format :UTF-8))
(loop for line = (read-line in nil nil)
while line
when (and (plusp (length line))
Expand Down
2 changes: 1 addition & 1 deletion src/uax-15.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
(loop for code from (first range) to (or (second range) (first range))
for char = code
collect (list char maybe?)))))
(with-open-file (in *derived-normalization-props-data-file* :external-format :ISO-8859-1)
(with-open-file (in *derived-normalization-props-data-file* :external-format :UTF-8)
(loop for line = (read-line in nil nil)
while line
do
Expand Down

0 comments on commit 74ce6da

Please sign in to comment.