Planned maintenance is scheduled for the week of June 15th - the exact date and time will be announced soon.
See More Details
Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Liferay Portal 6.0 Community Edition - portlet developing and charset
Hi,
I use Liferay Portal 6.0 Community Edition and I wrote a simple Liferay portlet which is the navigation bar-
view.jsp -
The question is how to make Cyrillic show up correctly? Panel now looks like this -

What am I doing wrong?
I would be most grateful for the information!
Thank you!
I use Liferay Portal 6.0 Community Edition and I wrote a simple Liferay portlet which is the navigation bar-
view.jsp -
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<portlet:defineobjects />
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="description" content="" lang="ru-Ru">
<div class="...">
<div class="...">
<div class="...">
<h1>
<a href="#">Cyrillic here</a>
</h1>
<ul>
<li class="...">
<a class="..." href="#">Cyrillic here</a>
<ul class="...">
<a class="" href="#">Cyrillic here</a>
<a class="" href="#">Cyrillic here</a>
<a class="" href="#">Cyrillic here</a>
<a class="" href="#">Cyrillic here</a>
</ul>
</li>
... etc
</ul>
</div>
</div>
</div>
The question is how to make Cyrillic show up correctly? Panel now looks like this -

What am I doing wrong?
I would be most grateful for the information!
Thank you!
I tried that-
Did not help.
...
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
...
Did not help.
My guess is that your JSPs are compiled/running using a character set that doesn't include Cyrillic.
Try using a language resource bundle for all your text.
Try using a language resource bundle for all your text.
Thank you, Samuel Kong! I'll try it.
Community
Company
Feedback