Showing posts with label unicode. Show all posts

Unicode in jsp  

Posted by Kishore in ,

Using unicode in jsp or java files under influence of any IDE like RAD can be easier.

Before pasting your unicode data into the jsp,java or data file in RAD, make the file encoding into utf-8. You can do this by

  1. Select file in package explorer
  2. Right click and choose Properties
  3. Choose the Other option in the Text-Encoding.
  4. From the list choose UTF-8
Even though you specify the metadata content type tag as UTF-8, you still need to do the same thing using

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

And here you go, your யூனிகோட்(Unicode) displays fine in the screen :)