cancel
Showing results for 
Search instead for 
Did you mean: 

Use special chars in a portal component

Former Member
0 Kudos

Hi all,

I need to use special italian chars (for example: à) in my own portal components. I use JSPs, but if I use that char into jsp code the component is not compiled (see code below). If i try to include the directive

<%@page pageEncoding=”UTF-8” %>, but the component retrive the exception:

Directive pageEncoding and contentType not found.

Any hints?

Thanks and regards

Ciao

Roberto

JSP code:

<%@ taglib uri="tagLib" prefix="hbj" %>

<%--- Get the Bean named myBeanName from the application context --%>

<hbj:content id="myContext" >

<hbj:page title="Template for a portal component">

<hbj:form id="myFormId">

<hbj:gridLayout

id="myGridLayout1"

debugMode="True"

width="100%"

cellSpacing="5"

>

<hbj:gridLayoutCell

rowIndex="1"

columnIndex="1"

width="40%"

horizontalAlignment="RIGHT"

>

<hbj:textView

id="Text_ZIP"

text="Qualità"

design="EMPHASIZED"

/>

</hbj:gridLayoutCell>

<hbj:gridLayoutCell

rowIndex="1"

columnIndex="2"

width="60%"

horizontalAlignment="RIGHT"

verticalAlignment="TOP"

>

<hbj:link

id="link1"

text="Link to a page"

reference="#"

tooltip="this takes you to: http://www.google.com"

>

<% //link1.setOnClientClick("javascript:return EPCM.doNavigate('ROLES://portal_content/Folder_Test/Ruoli/RuoloRoby/Begin/Siti/roberto_page')")%>

</hbj:link>

</hbj:gridLayoutCell>

<hbj:gridLayoutCell

rowIndex="2"

columnIndex="1"

colSpan="2"

width="100%; writing-mode:tb-rl"

horizontalAlignment="CENTER"

verticalAlignment="TOP">

ciao mondo

</hbj:gridLayoutCell>

</hbj:gridLayout>

</hbj:form>

</hbj:page>

</hbj:content>

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Roberto,

Try using <Meta> tag of plain HTML.

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

If you still see the problem then make sure that you have the following in java startup options.

-Dhtmlb.useUTF8=X

-Dfile.encoding=ISO-8859-1

lakshmi