We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use xattr (extended attributes) on macOS to save/load text encoding with file.
BBEdit is the only editor I've found that already does this.
Also Chocolat should honours any keep any existing com.apple.TextEncoding value.
com.apple.TextEncoding
debug command: xattr -p -l com.apple.TextEncoding "/path/to/file.txt"
xattr -p -l com.apple.TextEncoding "/path/to/file.txt"
output: file.txt com.apple.TextEncoding: Shift_JIS;2561
file.txt
com.apple.TextEncoding: Shift_JIS;2561
to set xattr (from terminal): xattr -w com.apple.TextEncoding "Shift_JIS;2561" "/path/to/file.txt"
xattr -w com.apple.TextEncoding "Shift_JIS;2561" "/path/to/file.txt"
these may help with implementation:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Proposal
Use xattr (extended attributes) on macOS to save/load text encoding with file.
Also Chocolat should honours any keep any existing
com.apple.TextEncoding
value.Background
Benefits
Details
debug command:
xattr -p -l com.apple.TextEncoding "/path/to/file.txt"
output:
file.txt
com.apple.TextEncoding: Shift_JIS;2561
to set xattr (from terminal):
xattr -w com.apple.TextEncoding "Shift_JIS;2561" "/path/to/file.txt"
References
these may help with implementation:
The text was updated successfully, but these errors were encountered: