Displaying special characters on UI

You can use Unicode to display special charters on UI components. You may need to use the resource bundle to hold the Unicode values (of the special characters), and the same can be referred from the UI using the key.


ResourceBundle Entry
-----------------------
view.copyRightSymbol=\u00a9

JSF
----
<c:set var="viewcontrollerBundle"
 value="#{adfBundle['view.ViewControllerBundle']}"/>
<af:outputText 
value="Copyright #{viewcontrollerBundle['view.copyRightSymbol']}" id="ot1"/>


The output on the page may look like as shown in the following image.

Comments

Anonymous said…
I want to display unicode characters stored in the database as

Helloï

I am using ADF outputFormatted to display this by using ADF Binding to the database column.

I have set the VO encoding to UTF-8 and the Page encoding also to UTF-8.

But still it is displaying as such
and not as I expect it.

How to do this ?

Thanks.

Disclaimer

The views expressed on this blog are my own and do not necessarily reflect the views of my employer.