3

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.

1 Answer 1

8

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.

Sign up to request clarification or add additional context in comments.

1 Comment

I develop web app JSPs with Eclipse IDE and this would automatically generated by the JSP template. But the charset variable do affects the output of characters with default encoding ISO 8859-1 (e.g. Mandarin).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.