About: Display UTF-8 characters in Mac Quicklook   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

To fix, add this to your vimrc: au BufWritePost * :if &fenc=='utf-8' || (&fenc=='' && &enc=='utf-8') | exec "silent !xattr -w com.apple.TextEncoding 'UTF-8;134217984' \"%\"" | endif This will append the extended attribute in every file you save with a UTF-8. Note that % is in double quotes to escape spaces for the shell. The :silent command prevents Vim from displaying the results (which are empty). If you want this for .txt files only, use the following instead: Using the command ls -l will show '@' in the file's attributes, for example: -rw-r--r--@ 1 daniel staff 15 Jun 5 10:12 lol.txt

AttributesValues
rdfs:label
  • Display UTF-8 characters in Mac Quicklook
rdfs:comment
  • To fix, add this to your vimrc: au BufWritePost * :if &fenc=='utf-8' || (&fenc=='' && &enc=='utf-8') | exec "silent !xattr -w com.apple.TextEncoding 'UTF-8;134217984' \"%\"" | endif This will append the extended attribute in every file you save with a UTF-8. Note that % is in double quotes to escape spaces for the shell. The :silent command prevents Vim from displaying the results (which are empty). If you want this for .txt files only, use the following instead: Using the command ls -l will show '@' in the file's attributes, for example: -rw-r--r--@ 1 daniel staff 15 Jun 5 10:12 lol.txt
Version
  • 7(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 1653(xsd:integer)
Category
  • Mac OS X
  • Encoding
Author
  • Dnlcorrea
Subpage
  • /201006
Complexity
  • basic
Created
  • 2010-06-05(xsd:date)
ID
  • 1654(xsd:integer)
NEXT
  • 1655(xsd:integer)
abstract
  • To fix, add this to your vimrc: au BufWritePost * :if &fenc=='utf-8' || (&fenc=='' && &enc=='utf-8') | exec "silent !xattr -w com.apple.TextEncoding 'UTF-8;134217984' \"%\"" | endif This will append the extended attribute in every file you save with a UTF-8. Note that % is in double quotes to escape spaces for the shell. The :silent command prevents Vim from displaying the results (which are empty). If you want this for .txt files only, use the following instead: au BufWritePost *.txt :if &fenc=='utf-8' || (&fenc=='' && &enc=='utf-8') | exec "silent !xattr -w com.apple.TextEncoding 'UTF-8;134217984' \"%\"" | endif Using the command ls -l will show '@' in the file's attributes, for example: -rw-r--r--@ 1 daniel staff 15 Jun 5 10:12 lol.txt
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software