Experience in Japanese coding web pages to solve garbled code. (Enemy's faction cut me down ~~)

Source: Internet
Author: User

I had to make a Japanese webpage. Although there were only a few pages, it took a lot of time and it was very depressing.

1. The page code should be set as follows:

< Meta HTTP-equiv = "Content-Type" Content = "Text/html; charset = shift_jis" >

2. Copy the Japanese text sent by the customer, and the code is garbled! Copy the file to a text file and then copy it to the webpage! After a long time .........
After that, I thought I was using DW to edit the webpage, so I tried to install another FrontPage. Open the editor with FrontPage and copy the Japanese file. Wow, no garbled characters have been changed !. Then, turn off the FrontPage, and then use DW to open the page, without any garbled code! I finally breathed a sigh of relief. Therefore, a Japanese-coded webpage is built with FrontPage, which enters all the required Japanese input, and then closes the webpage with DW. The required words are copied at 1.1 points.

3. Static Page garbled characters are eliminated, and the data read from the database is still garbled. Curse Japan again! Later I thought about it and thought about the reason! Due to laziness, I implemented the function of Inputting Chinese and Japanese data on the same page, and the encoding of this page is Chinese. Ah ~~~~ The pain point is that the Chinese and Japanese input pages are scored, and more work is required.

In any case, I finally solved the problem. I am tired of some experience and can share it with others for reference.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.