Reputation: 507
Is there someting wrong?
my encode config
(set-buffer-file-coding-system 'utf-8)
(setq file-name-coding-system 'gbk)
(unless (eq system-type 'windows-nt)
(set-selection-coding-system 'utf-8))
(prefer-coding-system 'utf-8)
Upvotes: 0
Views: 49
Reputation: 303
Maybe you could try this:
(set-locale-environment "zh_CN.utf-8")
I solved this problem after putting this code in the config file of Emacs.
Upvotes: 1