vivekrkt Posted May 14, 2015 Share Posted May 14, 2015 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 More sharing options...
Ingolme Posted May 15, 2015 Share Posted May 15, 2015 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now