pbs-assess / rosettafish

:fishing_pole_and_fish: An R package for translating fish- and fisheries-related terms
4 stars 15 forks source link

Big problem with encoding.. #8

Closed cgrandin closed 6 years ago

cgrandin commented 6 years ago

Each person that edits the file changes the encoding (unknowingly). The terms.csv file.

cgrandin commented 6 years ago

Solved before I even made the issue

andrew-edwards commented 5 years ago

For the record, when using Xemacs add this to your .emacs file:

;; From https://gist.github.com/billdozr/3679559
;; =============================================================================
;; Unicode
;; =============================================================================

(message "Setting UTF-8 encoding")

(prefer-coding-system       'utf-8)
(set-default-coding-systems 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(setq default-buffer-file-coding-system 'utf-8)
(setq x-select-request-type '(UTF8_STRING COMPOUND_TEXT TEXT STRING))

Worked for me. Inuktitut characters show up also.

cgrandin commented 5 years ago

Thanks for that Andy. My emacs looks good again :)