+ 56
[Solved] Different Emoji
In our keypad there are many emojis (emoji of balls are ⚪⚫🔴🔵) , but I need a green ball emoji for my code . I searched on Google , it was showing to copy emoji and paste it , but it isn't working when I copy that emoji it highlight emoji and paste it as ( [] ). Is it possible to print any other emoji that are not present in keyboard here if yes then how
12 Antworten
+ 44
Thank you everyone for your answers
🙏😊🙏
At the end I came to this result that yes it is OS based and not be available for C code , it is possible in web.
+ 40
Yes, I've seen this problem (and empty rectangles 😊) before. Displaying emojis relies on the resources installed in your OS. There are many versions of emojis containing their codes and corresponding looks. If your OS doesn't support that emoji version it will display an empty box, because there's no image assigned to that code. You could say it's "undefined".
But those are only general guidelines. In fact it's up to the system and installed themes to "decide" how your emoji looks. So user experience might be inconsistent.
A good alternative for a green circle could be an SVG element <circle> or a div styled as an inline block. At least it is more reliable for WEB codes ☺.
+ 36
Thank you so much for your answers, I learnt many new things.
And also got my answer that now it's not working in C ,but may be in future
+ 35
Coder
I'm asking for emoji in C language .
Yes it is possible to print that ( green ball ) emoji by using UTF-16 , but the problem is that now that files are not working .
You can refer this -
https://www.sololearn.com/post/166812/?ref=app
( Read comment by 🇮🇳Omkar🕉 //Busy , Exams. for C)
Now it is more easier to print emojis in C ,as we just have to give that emoji in code.
But in our keypad as I mentioned in question there is no green ball but I need it for my code , that's why I'm asking is it possible or not ...
+ 22
Well i think this will still be a bad idea as emoji r OS dependent they will look different for different OS.
Here are some alternative for u:
Solution 1:
U can make a green ball using a <div> Or <Svg>
solution 2:
u can try searching for such green ball emoji in. Fontawesome or similar libraries.
+ 10
I guess not because emoji depend on OS
+ 8
Emoji depends on os version and vary from device to device
+ 2
Vinesh Wadhwani🇮🇳 ,
@Bell asked if it'll be possible to print colored text or not.
I said " Not sure but I'll try to check it."
and the post is about use of unicode charecters not colors.
I have tried to print colored text on SL but it's not working here. Tried to use linux specific methods, but no effect.
It's just not supported here.
As everyone suggested, don't use emojis for colors. About 4 months ago I tested these same ball emojis on different devices with help of Keval(Nova) and Amit. They look completely different! Don't try to do this for now. I wish SL will support this feature sooner.
Thank you.
+ 1
To be honest, I really don't know... Well, I do know but it all depends on what type of computer that you are on. I'm really sorry that I couldn't answer your answer your question directly but you can post in the comments what kind of computer you have so that I can tell you what you need to do without doing all of that copying and pasting.
+ 1
utf8-32 can support the emoji so change the database table to utf8-32
+ 1
Hi, in the C language you can use this code for create a green ball:
#include <stdio.h>
int main()
{
printf("\033[0;32m");
printf("●");
return 0;
}
and the web, you can use this solution for change emoji color to green or any color you want.
<span class="em"> 🔴 </span>
.em {
color: transparent;
text-shadow: 0 0 0 green;
}
see this code:
https://code.sololearn.com/WnVZ2mFZbnB5/#html