LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-19-2018, 11:26 AM   #1
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,714

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Question Not all ascii characters are showing in text editors.


Hi.

Today, I noticed that not all ascii characters are showing in text editors (I tried geany, pluma, LO writer, etc.).

The automatic encoding part of Pluma is not on by default.
Attached Thumbnails
Click image for larger version

Name:	ascii.png
Views:	34
Size:	59.7 KB
ID:	28156   Click image for larger version

Name:	pluma.png
Views:	34
Size:	2.8 KB
ID:	28157  
 
Old 07-19-2018, 11:46 AM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Those missing symbols aren't ASCII, they're Unicode.

Try setting your editor to view UTF-8, if possible. Although, in saying that, if an editor doesn't display the tulip emoji then I'm surprised it's showing the trash emoji.

If that doesn't work, change the font being used by the editor. Perhaps the font you're using (system font?) has incomplete coverage of Unicode symbols.
 
Old 07-20-2018, 07:44 AM   #3
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,714

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Post

Hi hydrurga.

I tried a new font in LO Writer and Pluma. Also opened with Pluma and selected the UTF-8 option.
There's an 'add/remove character encoding option' in Pluma, I noticed this (image). Only Western is shown. I see no UTF-8 in the left column.

This might be of help:

Code:
locale
Code:
LANG=en_IE.UTF-8
LANGUAGE=en_IE:en
LC_CTYPE="en_IE.UTF-8"
LC_NUMERIC="en_IE.UTF-8"
LC_TIME="en_IE.UTF-8"
LC_COLLATE="en_IE.UTF-8"
LC_MONETARY="en_IE.UTF-8"
LC_MESSAGES="en_IE.UTF-8"
LC_PAPER="en_IE.UTF-8"
LC_NAME="en_IE.UTF-8"
LC_ADDRESS="en_IE.UTF-8"
LC_TELEPHONE="en_IE.UTF-8"
LC_MEASUREMENT="en_IE.UTF-8"
LC_IDENTIFICATION="en_IE.UTF-8"
LC_ALL=
Attached Thumbnails
Click image for larger version

Name:	ce.png
Views:	57
Size:	35.2 KB
ID:	28164   Click image for larger version

Name:	ce2.png
Views:	80
Size:	42.5 KB
ID:	28165  

Last edited by linustalman; 07-20-2018 at 07:47 AM. Reason: forgot to upload image
 
Old 07-21-2018, 05:05 AM   #4
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,714

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
I ran this and changed nothing as it looks ok already.

Code:
sudo dpkg-reconfigure locales
Attached Thumbnails
Click image for larger version

Name:	pc.png
Views:	49
Size:	42.0 KB
ID:	28172  
 
Old 07-21-2018, 10:14 AM   #5
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,139

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
There's nothing wrong with your locale or your software. You just don't have a font with every unicode symbol, something which doesn't actually exist. Whatever font you're using, the designer evidently thought that Trash was worth having and Tulip wasn't. I don't have either in any of my fonts.

If you want to go font hunting, try
http://www.unifont.org/index.html
http://www.wazu.jp/
You're looking for the Miscellaneous Symbols and Pictographs on Plane 1.
http://www.unicode.org/charts/
 
Old 07-21-2018, 10:19 AM   #6
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
You can view your font in charmap and see which symbols it contains.
 
Old 07-22-2018, 10:39 AM   #7
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,139

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Actually, that application shows all the characters available. When you select a font, it merely gives that font preference when picking a character. For a display confined to the characters in one font only, use the character inserter in Writer.
 
Old 07-22-2018, 10:48 AM   #8
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
AwesomeMachine was probably referring to GNOME Character Map, a GUI program that contains a drop-down list of fonts so one can see what characters are included in each font.
 
1 members found this post helpful.
Old 07-23-2018, 08:37 AM   #9
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,714

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by DavidMcCann View Post
There's nothing wrong with your locale or your software. You just don't have a font with every unicode symbol, something which doesn't actually exist. Whatever font you're using, the designer evidently thought that Trash was worth having and Tulip wasn't. I don't have either in any of my fonts.

If you want to go font hunting, try
http://www.unifont.org/index.html
http://www.wazu.jp/
You're looking for the Miscellaneous Symbols and Pictographs on Plane 1.
http://www.unicode.org/charts/
Hi David. I've tried many different fonts but the issue remains. I never had this issue before with these same fonts - Arial, TNR, etc.

Edit: I keep many symbols that I like - like the tulip, trash, etc. in a text file. For a long time, all those symbols were viewable without issue.

Last edited by linustalman; 07-23-2018 at 09:36 AM.
 
Old 07-23-2018, 09:51 AM   #10
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,139

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Quote:
Originally Posted by scasey View Post
AwesomeMachine was probably referring to GNOME Character Map, a GUI program that contains a drop-down list of fonts so one can see what characters are included in each font.
So was I! As I said, it shows the characters from the selected font where available and from any other font where not. I've just checked, and I have the 2017 version 10.0.2.
 
Old 07-23-2018, 12:33 PM   #11
Myk267
Member
 
Registered: Apr 2012
Location: California
Posts: 422
Blog Entries: 16

Rep: Reputation: Disabled
Quote:
Originally Posted by linustalman View Post
Hi.

Today, I noticed that not all ascii characters are showing in text editors (I tried geany, pluma, LO writer, etc.).

The automatic encoding part of Pluma is not on by default.
Install some fonts with more symbols. On Debian, I install fonts-symbola and ttf-unifont and get pretty good symbol coverage.
 
1 members found this post helpful.
Old 07-24-2018, 03:21 AM   #12
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,714

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Thumbs up

Quote:
Originally Posted by Myk267 View Post
Install some fonts with more symbols. On Debian, I install fonts-symbola and ttf-unifont and get pretty good symbol coverage.
I went to install fonts-symbola and that was all was needed. I can now see all of the characters in Pluma, LO Writer, etc. - regardless of what font I use.

Thank you Myk267.
Attached Thumbnails
Click image for larger version

Name:	chrs.png
Views:	10
Size:	24.1 KB
ID:	28202  

Last edited by linustalman; 07-24-2018 at 03:24 AM.
 
  


Reply

Tags
ascii, character encoding, pluma



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
file command sees regular ASCII text file as ASCII Java program text bbraml Linux - Software 6 08-30-2013 08:52 AM
[SOLVED] Midnight Commander, F-keys, UTF-8 and ASCII characters not showing correctly Imyrryr Linux - Software 7 01-23-2013 08:39 AM
How to insert Unicode (or extended ASCII) characters in text files? tommyttt Linux - General 4 12-28-2012 05:28 PM
How to convert encoding between ASCII text and ASCII English text astanton Linux - General 2 08-03-2011 03:55 PM
Bluefish not showing hidden (?) non-ASCII characters? ta0kira Programming 3 04-12-2008 03:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration