Questions tagged [unicode]
For challenges involving unicode.
87
questions
0
votes
4
answers
487
views
The thousand character classic
Background
The Thousand Character Classic is a chinese poem written around the 4th Century CE in China, and memorized by large populations since then. The name comes from not only its length, but its ...
76
votes
16
answers
14k
views
Hello World in Multiple Languages
Task
Create a program or a function that is valid in multiple programming languages, and when compiled/interpreted as a different language outputs "Hello, World!" in a different natural language.
...
12
votes
3
answers
601
views
Unicode rectangles
Given
a matrix a of characters from u=" ╶╺╵└┕╹┖┗╴─╼┘┴┶┚┸┺╸╾━┙┵┷┛┹┻╷┌┍│├┝╿┞┡┐┬┮┤┼┾┦╀╄┑┭┯┥┽┿┩╃╇╻┎┏╽┟┢┃┠┣┒┰┲┧╁╆┨╂╊┓┱┳┪╅╈┫╉╋"
the ...
49
votes
12
answers
3k
views
Braille graphics
Cut a boolean matrix in 4x2 blocks and render them as Braille characters U+2800...U+28FF.
...
25
votes
8
answers
2k
views
Take that frown and turn it around
A celebration of the many faces of APL
Given a string among those in column 1 or column 2 of the below table, return the string's neighbor to its right. In other words, if given a string in column 1 ...
23
votes
19
answers
2k
views
Print a shuffled deck of cards
Input
None
Output
52 cards. No duplicates. Cards are represented as their unicode characters, e.g. 🂹.
The Unicode codepoints follow the following format:
The first three digits are ...
20
votes
26
answers
3k
views
Print Real Invisible Text
My previous challenge, Print invisible text was quite popular, likely due to how trivial it is.
However those more observant of you may have noticed that you're not really printing invisible text, ...
1
vote
5
answers
426
views
Generate Tiny Text [duplicate]
Challenge
Your program needs to take an input of a string, where the string has only letters, no special characters, no numbers, and no accents (they look all weird).
Then, your program should output ...
9
votes
4
answers
256
views
Remind me again?
Introduction
Ever heard of Remind? No? Neither did I until about 2 years ago. Basic premise of it is for teachers to send out reminders and communicate with their students. Pretty neat, right? It ...
26
votes
11
answers
2k
views
HE COMETH NOT - a zalgo challenge [duplicate]
Write a program or function that, given a string, will strip it of zalgo, if any exists.
Zalgo
For this post, zalgo is defined as any character from the following Unicode ranges:
Combining ...
22
votes
10
answers
3k
views
Braille-ify a string
And no, This is not a dupe of Translate ASCII text to braille.
There are 28=256 Braille patterns in Unicode. (By 'Braille' I mean 8-cell ones)
W, wait. How many ASCII characters were there?
27 = 128?
...
9
votes
16
answers
979
views
Print the Greek national anthem
In March 25, 1821, Greece fought its great war of independence. In order to honor this, your task is to print the Greek national anthem:
...
3
votes
0
answers
313
views
Decode a UTF-8 character [closed]
The challenge
Your task is to decode the first character in a UTF-8 byte sequence. The input is a byte array or a byte string holding a UTF-8 byte sequence.
If the (start of the) sequence is valid, ...
13
votes
5
answers
527
views
What time is it in unicode?
The challenge is simplistic, given an input time as a string in any one of the following formats:
hh, hh:mm or ...
19
votes
7
answers
1k
views
Is it an emoji?
I've been working on this iOS app recently and I encountered a (rather easily solved) problem: How do I determine if my string is comprised only of emojis?
Well, that's your job today!
Input
A ...
17
votes
14
answers
1k
views
Convert CSV to Table
The Challenge
Given a CSV input, output a proper unicode table using box characters.
Formatting
The table will be formatted using the following rules:
Column width will be equal to the longest ...
24
votes
27
answers
6k
views
Output the Hebrew alphabet
Your task is to print this exact text:
אבגדהוזחטיכךלמםנןסעפףצץקרשת
(You are allowed to print a trailing newline)
SHA256 hash of the UTF-8 encoding of the text:
...
1
vote
0
answers
94
views
Print a better layered cake [duplicate]
I was looking at my previous challenge and thought I could make a better version, but I didn't want to modify that one, so here it is!
Challenge
Given an input n,
...
18
votes
16
answers
2k
views
Output "Lorem ipsum" with minimal number of characters
I remember people saying that code size should be measured in bytes, and not in characters, because it's possible to store information with weird Unicode characters, which have no visual meaning.
How ...
7
votes
15
answers
1k
views
Convert to Bubble Letters
So I was playing around with my compose key, and found some cool things, one of them being that by pressing compose + ( + alphanumeric + ), you get that character ...
29
votes
30
answers
3k
views
Bytes/Character
Task
Given a UTF-8 string (by any means) answer (by any means) an equivalent list where every element is the number of bytes used to encode the corresponding input character.
Examples
...
15
votes
1
answer
846
views
Convert ASCII box drawing into Unicode
I am shamelessly posting a request for something I would actually find useful. The task is to take an arbitrary ascii box drawing like this
...
16
votes
33
answers
2k
views
Spell out the Revu'a
Actually not inspired neither by Atbash Self Palindromes nor by Generalized Gematria Calculator.
Given a string s of length n, output the Revu'a sequence, which is the first character of s, the first ...
10
votes
3
answers
425
views
I-Ching pair binary computer
Introduction
I Ching is an ancient divination text and the oldest of the Chinese classics. It uses a type of divination called cleromancy, which produces apparently random numbers.
The basic unit of ...
16
votes
1
answer
254
views
Squish-unsquish ligatures
Here is a list of some common
ligatures in Unicode (the
ones I could create with my Compose key on Debian):
...
8
votes
0
answers
671
views
Encode a steganographic encoder into a package [closed]
Introduction
By steganography we mean hiding a message along an existing text or image so the result would be unsuspicious of the existence of the original message. This challenge is about hiding ...
18
votes
6
answers
925
views
Reverse Boustrophedon Text
Boustrophedon is a type of bi-directional text where successive lines alternate between reading left-to-right and right-to-left. Character direction was also mirrored with respect to reading direction....
24
votes
18
answers
5k
views
Count the bytes of a program
Note 2: I accepted @DigitalTrauma's 6-byte long answer. If anyone can beat that I will change the accepted answer. Thanks for playing!
Note: I will be accepting an ...
53
votes
22
answers
6k
views
Sᴍᴀʟʟ Cᴀᴘꜱ Cᴏɴᴠᴇʀᴛᴇʀ
Portable Spec.
Iɴꜱᴘɪʀᴇᴅ ʙʏ @ConorO'Brien's ᴜꜱᴇʀɴᴀᴍᴇ.
Aʟꜱᴏ ᴛʜᴀɴᴋꜱ ᴛᴏ @Dᴏᴏʀᴋɴᴏʙ ꜰᴏʀ ꜱʜᴏᴡɪɴɢ ᴍᴇ ᴛʜᴇ ᴇxɪꜱᴛᴇɴᴄᴇ ᴏꜰ ǫ ᴀɴᴅ x.
Sᴍᴀʟʟ ...
85
votes
13
answers
8k
views
Z̡̬a̧̯̔l̆̓g̛̘̟o̡ generator
Write a program or function that transforms an input string into Zalgo text.
For example, for an input string Zalgo, a possible output might look like:
...
43
votes
19
answers
3k
views
Print the character names [closed]
Every Unicode character has a name, like "LATIN CAPITAL LETTER A". A Unicode character name may contain only uppercase letters, white spaces, and the minus sign.
Write a program that reads a text and ...
-2
votes
1
answer
193
views
Print n-z characters of Unicode table [closed]
The challenge is to write a program which outputs all characters of the Unicode table from n to z range.
For code "0000" is the first in order and you must skip all blank Unicode combinations.
For ...
11
votes
5
answers
2k
views
Generalized Gematria Calculator
Create a bidirectional Gematria calculator, for any given sequence of Unicode characters as the alphabet.
Gematri-What?
Gematria is a system of assigning numerical values to symbols, developed by ...
6
votes
1
answer
671
views
Invent your own Unicode 7.0.0 encoding (as efficient as possible)
As you may know, the Unicode standard has room for 1,114,111 code points, and each assigned code point represents a glyph (character, emoji, etc.).
Most code points are not yet assigned.
Current ...
3
votes
0
answers
444
views
Encode as many ASCII characters as possible in a single tweet [closed]
Yet another compression challenge... but it could still be interesting...
Rules
Write a program that reads a string of printable ASCII characters, and outputs that string (or most of it) compressed ...
8
votes
3
answers
7k
views
Convert CP437 to UTF-8
The goal is to read bytes from input encoded in Code Page 437 and output the same characters encoded as UTF-8. That is, bytes should be translated into Unicode codepoints per this table (a particular ...
18
votes
4
answers
2k
views
Unicode UTF Converter
The goal is to create a fully compliant converter between the official Unicode encodings as given in the UTF FAQ. Given that this is centred on Unicode, I will accept the answer with the lowest byte ...