EzXML.jl
EzXML.jl copied to clipboard
The nodecontent function changes the encoding format of wide characters when they are processed, resulting in a garbled display.
using EzXML
doc = EzXML.parsehtml("<body><p>hello</p><p>中国</p><p>深圳</p></body>")
primates = root(doc)
for p in eachelement(primates)
println(nodecontent(p))
end
julia draft.jl
Out put: helloä¸åæ·±å³