How to

encode unicode URL

Published: 5. February 2015 | Updated: 5. February 2015
License: Microsoft Public License (MS-PL)
Categories: Network
Tags: C# Network Text
Was this snippet helpful for you? YESYES / NONO
Get Analyzant!

Check your entire website from code to content in minutes with Analyzant, the free analysis suite.

Free download at

Import namespaces

using System;


var url = new Uri("メインページ");
var encoded = url.AbsoluteUri;
Console Output:
Send us feedback about this snippet »

Related Snippets: