- Регистрация
- 16.05.2014
- Сообщения
- 145
- Благодарностей
- 25
- Баллы
- 18
			
				C#:
			
		
		
		using System.Globalization;
			
				C#:
			
		
		
		// convert to punycode
string unicode = project.Variables["text"].Value;
IdnMapping mapping = new IdnMapping();
string punnycode = mapping.GetAscii(unicode);
return punnycode;
			
				C#:
			
		
		
		// convert from punycode 
string unicode = project.Variables["text"].Value;
IdnMapping mapping = new IdnMapping();
string from_punycode = mapping.GetUnicode(unicode);
return from_punycode;
								
									Последнее редактирование: 
									
							
						
						
	
					
 
 
		