xml2 icon indicating copy to clipboard operation
xml2 copied to clipboard

url_parse doesn't work with URL containing non-ASCII characters

Open MarekProkop opened this issue 1 month ago • 0 comments

xml2::url_parse("https://www.spa.cz/spacz/images/procedures/Slatinná%20koupel.jpg") returns port -541335376 and all other URL components blank. The reason is the character á in the path. Without it (or if it is URL encoded), the result is correct.

It may be a feature, but I guess it's rather a bug. Such URLs are quite common in some languages and all major web clients (browsers, search engines etc.) can handle them fine.

MarekProkop avatar May 14 '24 15:05 MarekProkop