I have 2 strings that as a human appear exactly the same, but Julia sees 2 different strings.
test1 = raw"C:\Program Files\MATLAB\R2019a" test2 = raw"C:\Program Files\MATLAB\R2019a" test1 == test2 #julia says this is false
It turns out that Julia sees the space as a different character:
julia> test1 ' ': Unicode U+00A0 (category Zs: Separator, space) julia> test2 ' ': ASCII/Unicode U+0020 (category Zs: Separator, space)
The reason why this is a problem for me is the following (Julia doesn’t think
test1 is a valid path):
julia> isdir(test1) false julia> isdir(test2) true
Not sure how I ended up with this different space character, I think it’s from coping and pasting from OneNote. What is a good practice to avoid this problem in the future? Maybe a setting in VS Code so I can “see” the space character as different. Maybe a
clean function to convert all chars to ASCII/Unicode?