Aubergine
Aubergine

Reputation: 6032

jsp encoding does not display character correctly

Trying to display the following letter š (which is Lithuanian and which is under UTF-8 support according to http://docs.oracle.com/cd/E17904_01/bi.1111/b32121/pbr_nls003.htm) on .jsp . In editing mode when trying to save text containing the letter Eclipse complains:

enter image description here

If it is saved as UTF-8 following the advice the complaints stop, but instead of š I get:

clearly **š** not

Current configuration:

Resource => explicitly set to other: UTF-8

Preferences => Web => ISO 10646/ UNICODE UTF-8

Loading files => User workspace encoding : YES

How the letter should look like(example): http://en.wiktionary.org/wiki/lietuvi%C5%A1kai

I am totally clueless.

Upvotes: 3

Views: 5030

Answers (1)

Aubergine
Aubergine

Reputation: 6032

My fault, forgot to add:

 <%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>

at the top of the .jsp file. Hope that helps anyone.

Upvotes: 8

Related Questions