On 13/06/11 17:05, Carlo Trimarchi wrote:
2011/6/13 David Bürgin<[email protected]>
You could try to specify the encoding you're using by adding this line to
your HTML file:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
thanks, this did the work
In all, there are three ways to tell the browser that a page is in
UTF-8; they can be used together, but of course they shouldn't disagree
(if they do, there are precedence rules, which I don't remember):
1. The server may send an HTTP header specifying it, such as:
Content-Type: text/html; charset=utf-8
This is usually beyond the reach of the author of the page, but the
server itself ought to help itself with the following two criteria if it
recognises a file as HTML or XHTML.
2. The file may start with a BOM (the codepoint U+FEFF, represented in
UTF-8 as the three bytes 0xEF 0xBB 0xBF). This BOM, if present, must be
at the very start, even before any <!DOCTYPE or <html>. Vim sets it on
Unicode files which have the buffer-local Boolean option 'bomb' on.
3. An HTML file may include within its <head> section a tag, which for
UTF-8 would be <meta http-equiv="Content-Type" content="text/html;
charset=utf-8">, meaning that this file "should" be served with the
header mentioned above under 1. This tag is never paired; in XHTML it
must therefore end with />
Best regards,
Tony.
--
Immigration is the sincerest form of flattery.
-- Jack Paar
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php