You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using EzXML
doc = EzXML.parsehtml("<body><p>hello</p><p>中国</p><p>深圳</p></body>")
primates =root(doc)
for p ineachelement(primates)
println(nodecontent(p))
end
julia draft.jl
Out put:
helloä¸åæ·±å³
The text was updated successfully, but these errors were encountered:
We just had the same problem using Genie.jl and boiled down the problem root to the new version of XML2_jll.jlv2.11.5. Pinning that package to the previously released version v2.10.4 makes the problem disappear:
Note that versions 2.11.0 to 2.11.4 were not provided by XML2_jll.jl, so these can not be immediately tested.
Then:
julia> using EzXML
julia> doc = EzXML.parsehtml("<body><p>hello</p><p>中国</p><p>深圳</p></body>")
EzXML.Document(EzXML.Node(<HTML_DOCUMENT_NODE@0x0000000001afee70>))
julia> primates =root(doc)
EzXML.Node(<ELEMENT_NODE[html]@0x0000000001c9f680>)
julia> for p ineachelement(primates)
println(nodecontent(p))
end
hello中国深圳
Of course this is also a problem when using umlauts.
Out put:
helloä¸åæ·±å³
The text was updated successfully, but these errors were encountered: