Does the VIM editor in LInux not support Chinese? _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:23:09
Original
1254 people have browsed it

Linux Vim Browser HTML

I am currently learning HTML web design by myself. The system I use is Fedora 18. Every time I use vim to write a web page, I can type in Chinese, but if I use a browser to open the web page file , all the Chinese characters have become garbled, and adding the meta tag gb2312 to the source code of my webpage has no effect. I would like to ask how to solve this problem. Could you please give me some advice? . .

Reply to the discussion (solution)

Just change the editor

That one seems to support Chinese

Just change the editor

That one seems to support Chinese, but I can input Chinese. After the written html is opened, the Chinese part is garbled

It supports Chinese, and the encoding is set to: utf8.

My suggestions are:

1. Use HTML5 to write your HTML [set the encoding in HTML5]

<!doctype html><html><head><meta charset="utf-8"><!-- 设置编码 --><title>HTML5测试</title></head><body>键入你的E-mail:<input type="email" name="email" /></body></html>
Copy after login

2. Test with a higher version of the browser [Firefox or Chrome are both acceptable ]
3. If you are using the English version of fedora18, you may need to install Chinese fonts.

But use Vim to write HTML. . . Alexander. . . [Writing HTML5 will be much better...the header is not that complicated]

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template