سؤال

As title, I have an encoded String that I got from my URL, I want to display to user but don't know how to decode it

T%E1%BB%87p t%E1%BA%A3i l%C3%AAn => Tệp tải lên

I'm using liferay 6.1 ga1, and try to create some webcontent template.

هل كانت مفيدة؟

المحلول

You can try with httpUtil, that should be available in velocity context.

$httpUtil.decodeURL("T%E1%BB%87p t%E1%BA%A3i l%C3%AAn")

would get you Tệp tải lên

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top