I am running a node.js server and the following line just isn't working.
console.log("☺☻♥ مرحبا 你好");
I opened up the file in nano and cat on my ubuntu server 14.04 (no gui, no window manager, no kde, no gtk, no nothing, pure ubuntu server 14.04) and it looks like this:
I have the file in a samba share and when I open it in Windows 8 pro it looks as so in notepad++:
This is how the samba config looks like this, the private shares do not have anything fancy or to do with charsets:
Locale looks as so:
/etc/default/locale looks like:
And the following command displays a Ô
in the ubuntu server terminal:
perl -CO -le ‘print “\x{d4}”’
Like so:
I use the command start_unicode
and then hold in ALT
while typing 1236
and got a diamond!
I ran the following:
sudo touch /srv/file.txt
sudo bash -c 'echo -e "\xe2\x82\xac"' > /srv/file.txt
This resulted in a very nice € symbol in nano however when trying to display the following ☺☻♥ it does not work (black diamonds)
Anyone got any ideas?
cat
instead ofnano
? – Wilf Jul 04 '14 at 17:54