Jump to content

convert html page hindi content into unicode text


vivekrkt

Recommended Posts

Hello,

I have a collection of html pages in hindi texts and now I want to convert those into Unicode font as per the demand. So can any one tell me the perfect javascript code that can do this task at the time of page load (without any click event).

Thanks

Link to comment
Share on other sites

This is probably not a good task for Javascript. Have your HTML editor convert the page to UTF-8. As for the font, you choose that with CSS. You can use the lang attribute to tell the browser which sections are written in hindi, then CSS can select those elements using the :lang() selector and choose a different font.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...