Hi All
I am having trouble splitting a string in UTF-8 encoding. In my program, I
am reading a file and splitting each line. On the terminal, copy-pasting
the line shows the same behaviour.
julia>
julia> s::UTF8String = "Time flies like an arrow.(光陰矢の如し)"
"Time flies like an arrow.(光陰矢の如し)"
julia> split(s)
1-element Array{SubString{UTF8String},1}:
"Time flies like an arrow.(光陰矢の如し)"
julia> s = " time flies like an arrow"
" time flies like an arrow"
julia> split(s)
5-element Array{SubString{ASCIIString},1}:
"time"
"flies"
"like"
"an"
"arrow"
julia> s = "Time flies like an arrow"
"Time flies like an arrow"
julia> split(s)
1-element Array{SubString{UTF8String},1}:
"Time flies like an arrow"
julia>
Could someone please guide me with the correct way of doing this? Thanks.