tags:

views:

20

answers:

1

I have created an RSS feed, that contains non-ASCII characters URLs (IRI). That's why it does not validate using Feed validator.

How important is that validation? As far as I know this is more or less a validation for legacy RSS readers?

Anyway, I would like to know how to convert IRI to URL in C#?

http://www.viva.si/Zdrav-način-prehrane/204/Jagodičje

to

http://www.viva.si/Zdrav-na%C4%8Din-prehrane/204/Jagodi%C4%8Dje
A: 

Solution:

string url = new Uri(iri).AbsoluteUri
Peter Stegnar