Lines Matching refs:encoding
90 " specify the encoding if it's not natively supported. This function is only
312 " figure out whether current charset and encoding will work, if not
316 \ && &encoding!=?s:settings.vim_encoding)
322 let s:settings.encoding = 'UTF-8'
355 if s:settings.encoding != ""
356 let xml_line = "<?xml version=\"1.0\" encoding=\"" . s:settings.encoding . "\"?>"
385 " include encoding as close to the top as possible, but only if not already
387 if s:settings.encoding != "" && !s:settings.use_xhtml
389 call add(html, '<meta charset="' . s:settings.encoding . '"' . tag_close)
391 …http-equiv=\"content-type\" content=\"text/html; charset=" . s:settings.encoding . '"' . tag_close)
775 let user_settings.encoding = g:html_use_encoding
779 echomsg "TOhtml: file encoding for"
794 let user_settings.encoding = '' " trigger detection using &encoding
798 " else from 'encoding' if possible
799 if &l:fileencoding == '' || user_settings.encoding == ''
800 let user_settings.vim_encoding = &encoding
805 if user_settings.encoding == ''
807 let user_settings.encoding = 'UTF-8'
883 " get the proper HTML charset name from a Vim encoding option.
887 let a:settings.encoding = g:html_charset_override[l:vim_encoding]
891 " system that Vim will convert with iconv(), look up just the encoding name,
896 let a:settings.encoding = g:tohtml#encoding_to_charset[l:vim_encoding]
898 let a:settings.encoding = ""
901 if a:settings.encoding != ""
902 let l:vim_encoding = tohtml#EncodingFromCharset(a:settings.encoding)
904 " if the Vim encoding to HTML encoding conversion is set up (by default or
905 " by the user) to convert to a different encoding, we need to also change
906 " the Vim encoding of the new buffer
912 " Get the proper Vim encoding option setting from an HTML charset name.
913 function! tohtml#EncodingFromCharset(encoding) "{{{ argument
914 if exists('g:html_encoding_override') && has_key(g:html_encoding_override, a:encoding)
915 return g:html_encoding_override[a:encoding]
916 elseif has_key(g:tohtml#charset_to_encoding, tolower(a:encoding))
917 return g:tohtml#charset_to_encoding[tolower(a:encoding)]