You are not logged in.
In IntelliJ using Java if I try this statement:
System.out.println("\u26f7" + " " + "\u1f3c3");
It only displays the first unicode character, the one one is shown as a rectangle. I tried to print the second one as "\uD83C\uDFC3" but it still didn't work.
I am thinking it's a problem with the system but I don't know what it could be.
I'am sorry if this is a stupid question but I remember in installation of uncommenting "en_US.UTF-8" in /etc/locale.gen and writing "LANG=en_US.UTF-8" in /etc/locale.conf. Is UTF-8 the wrong thing to use?
Offline
Most likely you are just lacking a font (or configuration for the programs/terminal in use to use such font) that provides those glyphs.
But lets start with locale information, please post the output of the following:
locale -a
localectlThen what fonts have you installed? I'd prefer to focus on the chacters not showing in vim as I have no idea how IntelliJ works. What terminal emulator are you running vim in and what font(s) have you configured the terminal to use?
Last edited by Trilby (2018-09-08 13:41:03)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
locale-a:
C
en_US.utf8
POSIXlocalectl:
System Locale: LANG=en_US.UTF-8
VC Keymap: n/a
X11 Layout: n/aI use adobe-source-code-pro-fonts.
I use st as terminal emulator. To be honest I haven't look much into st configuration, I use it as stock because it works for me. I just looked and it has this line:
static char *font = "Liberation Mono:pixelsize=12:antialias=true:autohint=true";So I suppose I use Liberation Mono in st.
The problem appears everywhere. For example, take these 3 unicode characters:
https://unicode-table.com/en/1F6B4/
https://unicode-table.com/en/1F3C3/
https://unicode-table.com/en/26F7/
When I paste then in vim I get this:
As you can see only the last one shows. But the issue is the same if I do it in IntelliJ, or in chromium(only the last link shows the symbol).
Offline
I don't get the symbol for any of those three. I gather those glyphs are not covered by many fonts. If you want to use them, you'll need to ensure you use a font that covers that unicode range.
Based on the coverage map your best bet would be unifont, but that may not even provide all of those.
Last edited by Trilby (2018-09-08 21:15:29)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline