在jsp中显示印地文字体 [英] Displaying Hindi font in jsp

查看:209
本文介绍了在jsp中显示印地文字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近开始学习JSP,我无法在我的页面中显示hindi字体kruti dev。我浏览了解决方案并将页面指令更改为

I have started learning JSP recently and i am NOT able to display hindi font "kruti dev" in my page. i browsed for the solutions and changed the page directives to

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" 
    import="java.io.*,java.util.*,java.sql.*"%>

和元标签

<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />

最后我也改变了Eclipse设置:

finally i have also changed the Eclipse settings:

窗口 - >首选项 - > Web - > Jsp文件编码为UTF-8

Window -> Preferences -> Web -> Jsp Files encoding to UTF-8

但仍然没有成功。

这里是mysql数据库和localhost的截图:

here is the screenshot of mysql database and localhost:

所需字体安装在我的系统上。
我需要在我的项目资源或类似的东西中配置任何其他东西,如包含该字体。??????

The required font is installed on my system. Do i need to configure anything else like including that font in my project resources or something like that..??

This is the code of the create table:

  -----+
| user_mst | CREATE TABLE `user_mst` (
  `UserCode` int(10) NOT NULL,
  `UserDispName` varchar(50) DEFAULT NULL,
  `UserDispName_Eng` varchar(50) DEFAULT NULL,
  `USER_ID` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`UserCode`),
  KEY `DistCode` (`UserCode`),
  KEY `USER_ID` (`USER_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 |


推荐答案

可能有其他方法,但数据库编码您应该检查的原因之一。有可能早在Spring 3.0,您有一些功能允许网页显示hindi字体。

There could be other ways, but the database encoding is one of the reasons that you should check for. there is possibility that earlier in Spring 3.0., you had some functionality that allowed web pages to display hindi font.

这篇关于在jsp中显示印地文字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆