Skip to content
New issue

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

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 this issue Dec 17, 2023 · 0 comments

Comments

@High-Flyer
Copy link

High-Flyer commented Dec 17, 2023

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:

  • Inside Emcacs ran command: all-the-icons-install-fonts enteredt the output path to desktop installed the provided fonts which are;

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

  • Theres an error now on installing all-the-icons-nerd-fonts-family.ttf

  • Installed and initiated nerd-icons inside emacs and in system using hack and only symbols nerd fonts.
    Theres one finding with nerd-icons the items inserted through it stays even after the restart but sadly shows the error of unable to decode and set coding language to utf-8 (Default)

  • Installed Symbola fonts after that I started seeing the next and previous, as mentioned in other all-the-icons issue/question.

  • Tried changing default coding language inside config.org (still the problematic characters issue persists)

(set-default-coding-systems 'utf-8)
(prefer-coding-system 'utf-8)
(setq locale-coding-system 'utf-8)
(set-selection-coding-system 'utf-16-le)

;; 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.

@High-Flyer High-Flyer changed the title Every inserted icon from all-the-icons On restart everytime showing window unable to decode "problematic characters in the buffer". 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". Dec 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant