November 2018
Intermediate to advanced
460 pages
14h 1m
English
In the file operations presented in the preceding recipes, we assumed that the data variable is UTF-8 encoded (UTF-8 is the default encoding for strings in Julia). If your file contains non-UTF-8 encoded characters outside of the standard ASCII set, this function will wrongly interpret characters and produce garbage.
If the data in your file is using character encodings other than UTF-8, you should use the StringEncodings.jl package. To do this, first, press the ] key to start the Julia package manager, then enter the following:
(v1.0) pkg> add StringEncodings
Now, you can use StringEncodings to process data in any selected encoding. See the example code (the example assumes that data is Windows-1250 encoded):
using StringEncodings ...Read now
Unlock full access