On 04/08/14 21:35, glts wrote:
Hey,
On Monday, August 4, 2014 5:30:09 PM UTC+2, Ni Va wrote:
I am under a buffer that has utf-8 on encoding or fileencoding vars.
I have the following content :
&
True
"
I would like to replace those known characters by utf-8 correponding chars and
available for display and reading.
sounds like you're asking about HTML encoding and decoding.
The unimpaired.vim plugin provides operators '[x' and ']x' to encode and
decode XML and HTML entities:
http://www.vim.org/scripts/script.php?script_id=1590
With unimpaired.vim you can do 'gg]xG' to decode the entire buffer.
Note that entities look like this: '&xxxx;'. The examples you gave are
actually ill-formed: they are missing the semicolon.
Also, in XML (and in XML-derived languages including XUL and IIUC XHTML)
additional entities can be defined by additional user-defined DTDs. They
are also bounded by a header ampersand and a trailer semicolon. I don't
know the details but I suppose they are found somewhere on the W3C site.
Best regards,
Tony.
--
Never drink from your finger bowl -- it contains only water.
--
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.