Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > htmlencode in tagname View modes: 
User avatar
Member
Member
Alex - 10/7/2010 6:17:21 AM
   
htmlencode in tagname
Hello!

I use transformation code
BlogFunctions.GetDocumentTags(Eval("DocumentTagGroupID"), Eval("DocumentTags"), "/tag") for show tags in document

But my tags in Russian and url link on the tag looks like this sample
tag?tagname=%d0%a2%d0%b5%d1%85%d0%bd%d0%be%d0%bb%d0%be%d0%b3%d0%b8%d0%b8&groupid=54&clientcache=0

But I need for tag searching on thet Tag page
tag?tagname=Технологии&groupid=54&clientcache=0

How can I htmlencode tags by Russian words in transformation code?

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 10/7/2010 7:50:12 AM
   
RE:htmlencode in tagname
Hello,

Russian signs are not allowed in the URL (they are automatically encoded to %1d, ...), therefore it is not possible to create a query string like tag?tagname=Технологии&groupid=54&clientcache=0

You can consider another solution. To use Latin translation of Cyrillic words.

You can find an example here:
http://www.webmasterworld.com/link_development/3796126.htm

If you are using these tags internally, the easiest solution might be to create some function that converts encoded signs back to Cyrillic.

Best Regards,
Ivana Tomanickova

User avatar
Member
Member
Alex - 10/7/2010 8:18:29 AM
   
RE:htmlencode in tagname
Your example does not explain anything.

My site in Russian and I need to use only russian words.
Maybe there is a way to directly encode the text in a database query?

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 10/8/2010 6:38:08 AM
   
RE:htmlencode in tagname
Hi,

Could you please specify what web part is using the tagname query string parameter?
If you use the query string parameter in a Where condition how does the condition look like?

Best regards,
Ivana Tomanickova