PolMine / bignlp

Tools to process large corpora line-by-line and in parallel mode
1 stars 1 forks source link

Show Java encoding upon initialization #32

Closed ablaette closed 2 years ago

ablaette commented 3 years ago

The package assumes that Java will work with UTF-8 but this is not necessary. Check it upon attaching bignlp using this snippet:

library(rJava)
.jcall("java/lang/System", "S", "getProperty", "file.encoding")
ablaette commented 2 years ago

A new auxiliary function jvm_encoding() reports the Java file encoding. Output is displayed upon loading bignlp.