Message Boards

Liferay Portal 6.0 Community Edition - portlet developing and charset

ivanov -void, modified 11 Years ago.

Liferay Portal 6.0 Community Edition - portlet developing and charset

New Member Posts: 22 Join Date: 11/7/12 Recent Posts
Hi,

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!
ivanov -void, modified 11 Years ago.

RE: Liferay Portal 6.0 Community Edition - portlet developing and charset

New Member Posts: 22 Join Date: 11/7/12 Recent Posts
I tried that-



...



<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">

...



Did not help.
thumbnail
Samuel Kong, modified 11 Years ago.

RE: Liferay Portal 6.0 Community Edition - portlet developing and charset (Answer)

Liferay Legend Posts: 1902 Join Date: 3/10/08 Recent Posts
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.
ivanov -void, modified 11 Years ago.

RE: Liferay Portal 6.0 Community Edition - portlet developing and charset

New Member Posts: 22 Join Date: 11/7/12 Recent Posts
Thank you, Samuel Kong! I'll try it.