C# 计算URI编码字符串中的实际字符数
在客户机上,我有一个textarea,并按如下方式提取其值:C# 计算URI编码字符串中的实际字符数,c#,C#,在客户机上,我有一个textarea,并按如下方式提取其值: var TheURIEncodedString = encodeURI($('#TheTextArea').val()); "This%20is%20a%20test%0AThis%20is%20a%20new%20line" 字符串如下所示: var TheURIEncodedString = encodeURI($('#TheTextArea').val()); "This%20is%20a%20test%0AThis%20
var TheURIEncodedString = encodeURI($('#TheTextArea').val());
"This%20is%20a%20test%0AThis%20is%20a%20new%20line"
字符串如下所示:
var TheURIEncodedString = encodeURI($('#TheTextArea').val());
"This%20is%20a%20test%0AThis%20is%20a%20new%20line"
我通过ajax发送这个字符串,当我在服务器上收到它时,我需要计算实际字符的数量,而不是字符串的长度
我如何才能做到这一点?使用:
结果:
This is a test
This is a new line
使用:
结果:
This is a test
This is a new line
使用该方法
使用该方法
你考虑过联合国逃走吗?我愿意接受所有建议。你能表现出什么样子吗?你认为联合国逃脱了吗?我对所有的建议敞开心扉;你能展示一下那是什么样子吗?