how to get wwwform to encode properly?

Hello, When I use wwwform it seems to urlencode the at symbol correctly. However, underscores and dots are not encoded which the API I’m working with doesn’t like. Is there a way to encode post data properly the same as say a html form?

It seems like form data should be encoded using x-www-form-urlencoded which converts periods to %2E. In contrast, unity appears to use url encoding for post data?

Anyone know if I can use this c# encode method?

have you tried: System.Uri.EscapeUriString(“url”); or System.Uri.EscapeDataString(“url”);

Yeah I tried that. It seems to be applied by default. I’m interested in using C# System.Web.HttpUtility.UrlEncode method in unity. Do you know how to include it?

I saw some other people had the same problem. Encode / Decode HTML Tag in unity ? - Unity Engine - Unity Discussions