Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

How to iterate over unicode characters with multiple codepoints

$
0
0

Hi this code

str = "Héllo World"
for i in str 
    println(i)
end

produce this output

H
e
́
l
l
o

W
o
r
l
d

How to make it produce

H
é
l
l
o

W
o
r
l
d 

(On a side note, if you run it in vs code repl the line with only ́ from the first output looks empty)

5 posts - 5 participants

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles