domtronn / all-the-icons.el

A utility package to collect various Icon Fonts and propertize them within Emacs.
MIT License
1.48k stars 177 forks source link

Every inserted icon from `all-the-icons` turns into unidentifiable character On restart everytime and When inserted inside emacs-lisp block showing window unable to decode "problematic characters in the buffer". #380

Open High-Flyer opened 11 months ago

High-Flyer commented 11 months ago

Everytime even if I just insert icon into config.org outside the emacs-lisp block, shows icons properly until the emacs is restarted. When the all-the-icons inserted inside the emacs-lisp throws error: "problematic characters in the buffer".

Illustration: Both are same icons one inserted just now and one After the restart. :Pic showing before and after restart. Pic SHowing before and the after restart

:Pic showing the error message when the all-the-icons character is inserted into babled emacs-lisp block: Screenshot (68)

:Pic showing all the icons are visible inside Screenshot (72)

problematic characters in the buffer ‘ *temp file*’:
iso-latin-1-dos      135977  #xE9AB 
problematic characters in the buffer ‘ *temp file*’: ?

In bottom prompt giving option: Select coding system (default utf-8):

My doubt is Windows N version causing some problems. Though i installed the Symbola fonts as mentioned in previous issue to work with Centaurtabs.el Tried installing for the user and for all the users issue is the same.

System Details:

Operating System: Windows 10N (N version Which opts out most of the propriatary tools like media players,Skype and some propriatary and spying tools etc. Emacs Version: GNU Emacs 29.1 (build 2, x86_64-w64-mingw32) of 2023-07-31 Package Manager: Elpaca Setup through config.el all-the-icons.el install block:

(use-package all-the-icons
  :if (display-graphic-p)
  :init 'all-the-icons  ;; added just for trial still no effect.
  ;; Alternately tried init: (require 'all-the-icons) still no change.
  :ensure t
  :config
  ;; (setq inhibit-compacting-font-caches t)
)
(use-package all-the-icons-dired
  :hook (dired-mode . (lambda () (all-the-icons-dired-mode t)))
)

Emacs installed through: Chocolatey package manager.

Am very new to Emacs i built this config from scratch so emacs at core no other distribution.

Setup and Troubleshooting Steps already taken:

all-the-icons.ttf all-the-icons-nerd-fonts-family.ttf file-icons.ttf fontawesome.ttf material-design-icons.ttf octicons.ttf weathericons.ttf

;; Tried changing everything to utf-8 / utf-8-dos / utf-8-unix / utf-16-le / Windows-1252

## Output of `[System.Text.Encoding]::Default` inside Terminal

IsSingleByte : True BodyName : iso-8859-1 EncodingName : Western European (Windows) HeaderName : Windows-1252 WebName : Windows-1252 WindowsCodePage : 1252 IsBrowserDisplay : True IsBrowserSave : True IsMailNewsDisplay : True IsMailNewsSave : True EncoderFallback : System.Text.InternalEncoderBestFitFallback DecoderFallback : System.Text.InternalDecoderBestFitFallback IsReadOnly : True CodePage : 1252


I understand the problem is complex maybe my system or bad config is causing but am really clueless at this point.
I also know you dont prefer using non-free operating systems like Windows.
Am Good to share my whole config file.
Followed everything in handbook still having this issue.
Any insight or input will be much appreciated.
Warm Regards.