How to Display Japanese Text on an English HTML Page
Developing Web pages that support a variety of different languages and character sets can give webmasters that competitive edge in a globalized economy. For an HTML page to support Japanese characters -- as well as characters from other languages -- you'll need an encoding and character set with international support. UTF-8 is an internationally-used standard character set that's based on Unicode encoding and supports all the major languages.
Create or edit your document in a text or HTML editor that allows you to select the enoding system. This includes Microsoft Notepad, Adobe Dreamweaver and most widely-used Web design software.
Within the <head> tag of the document, declare the character set using the "Content-Type" meta tag:<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Save your document with the proper encoding. In Microsoft Notepad, select "Save As" and change "Encoding" to either Unicode or UTF-8. Adobe Dreamweaver saves documents in Unicode by default, but yo can change those settings in the "New Document" section of the preferences menu.
Insert Japanese text into the body of your document.
Open the page in a Web browser and verify that the characters display correctly. If not, double-check the encoding settings.
Tips & Warnings
- Use automatic redirects to detect the location of your visitors and automatically channel them to the version of your website written in their own language. Offer the ability to switch languages to all users on the site's main navigation menu.