Search code examples
javahtmlcharacter-encodingwebfonts

Gujarti text on html Page


In my Project I have to display a text in Gujarati Font on HTML page so, can anyone help me how can i do this?

I will explain you how my application read Gujarati String.

Steps :

1) Upload MsWord document(with Gujarti content) from jsp page and store it in MySQl table with hibernate.

2) Retrieve document by java/hibernate and display back to HTML page.

Now, problem is HTML page can no display this Gujarati font. I have used UTF-8 encoding also.


Solution

  • Add following line in your HTML.

    < meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />