Questions tagged [unicode]

For challenges involving unicode.

Filter by
Sorted by
Tagged with
14 votes
3 answers
567 views

Universal Unicode Clock

Plot contrivance You wake up to find that something has gone horribly wrong! Your time machine has malfunctioned and you are lost sometime between June 2022 and October 1991. You check the computer ...
user avatar
  • 87.4k
4 votes
0 answers
224 views

Convert To Shorthand Part 2

Part 1 of the challenge revolved around converting the letters into specific unicode characters. Lore In this part we receive the output from the function made in Part 1, which now has to be arranged ...
user avatar
  • 439
5 votes
12 answers
710 views

Convert To Shorthand Part 1

This challenge has been divided into parts. Your goal is to convert a sentence into a form of 'short-hand' For Part 1 these are the rules Take in 1 word Remove all vowels(a,e,i,o,u), except the ones ...
user avatar
  • 439
35 votes
5 answers
3k views

Convert to UTF-∞

It's 22022 and the Unicode consortium is having a problem. After the writing system of the ⮧⣝Ⅲⴄ⟢⧩⋓⣠ civilization was assigned the last Unicode block, the consortium members have been scrambling to ...
user avatar
  • 6,645
11 votes
11 answers
2k views

Mr. ASCII becoming uncanny with your own code

Let's make a little stupid program that simulates the meme "Mr. incredible becoming uncanny", but in this case, our little ASCII friend is going to react to our code length. Objective: ...
user avatar
10 votes
32 answers
1k views

Convert the decimal digits of a string's Unicode codepoints to binary, reinterpret as decimal, and take the sum

Yeah... it's confusing. Let me explain it a little better: With a string, get the unicode code points of each letter Let's use "Hello World!". The code ...
user avatar
14 votes
31 answers
2k views

Convert superscript numbers to normal numbers

Introduction My gnome friends are writing a programming language and have asked for my help. Due to their size, the gnomes can only handle small superscript numbers instead of big numbers. However, ...
user avatar
  • 3,330
13 votes
7 answers
871 views

Convert codepoint to UTF-1

UTF-1 is one of the methods to transform ISO/IEC 10646 and Unicode into a sequence of bytes. It was originally for ISO 10646. The UTF-1 encodes every character with variable length of byte sequence, ...
user avatar
13 votes
12 answers
2k views

Convert codepoint to UTF-9

UTF-9 was an April Fool's Day RFC joke specifications for encoding Unicode suitable for 9-bit nonet platforms. Challenge Your task is to implement a program or a function or a subroutine that takes ...
user avatar
23 votes
3 answers
1k views

Pretty print a grid of polyominoes

Write a function that accepts a rectangular grid of ids in any reasonable format, for example a multi-line string: IIILOO ILLLOO and a string or list of box ...
user avatar
  • 6,540
8 votes
7 answers
494 views

Fix Facebook exported JSON

When you export data in JSON from Facebook, the multi-byte Unicode characters are broken. Example Unicode characters and their representation inside JSON: ...
user avatar
15 votes
9 answers
2k views

Full name quine

Most Unicode characters have full names, for example is "RIGHT DOUBLE QUOTATION MARK". You can find a useful reference here, just type in the character ...
user avatar
37 votes
20 answers
7k views

I give you ascii-art, you make it pseudo-3d

Do you know the optical effect of a tridimensional hand painted whit horizontal lines? Examples This challenge consists of making something like that effect with ascii, and transforming one 2d input ...
user avatar
7 votes
19 answers
1k views

To count the sum of all Unicode characters of a given input under an interesting constraint

Program: To count the sum of all Unicode characters of a given input. (No need to display the output. The final answer can be calculated in any base no need to convert back to hexadecimal.) Test case :...
user avatar
  • 243
22 votes
9 answers
1k views

Unicode T-square

Challenge Create a function or program that, when given an integer size, behaves the following way: If size is equal to 1, ...
user avatar
13 votes
7 answers
926 views

Write a Unicode Unpacker

We all know scoring by characters is ripe for abuse. Let's prove this. The Challenge Output the following: ...
user avatar
  • 11.8k
14 votes
5 answers
638 views

Wuxings in Positive Action

Background Wuxings(五行) are the five "elements" in Chinese philosophy. They are Fire(火), Water(水), Wood(木), Metal(金), and Soil(土). You can find them on East Asian calendar, where some days (...
user avatar
  • 4,163
10 votes
3 answers
446 views

Count The Genus

Objective Given a matrix of connected box drawing characters, count its genus, the number of plane sections it encloses. Valid input The box drawing characters are ...
user avatar
  • 4,163
26 votes
41 answers
6k views

All you have to do is print the number 1! ...Twice

Your task In your language of choice: create a program that outputs 1 This 1 may either be a string or value equivalent to the ...
user avatar
  • 2,721
15 votes
12 answers
3k views

Parse a Unicode vulgar fraction

Objective Given a string with single Unicode vulgar fraction, parse it to a rational number. Valid inputs A valid input is one of: ¼ U+00BC; one quarter ...
user avatar
  • 4,163
6 votes
2 answers
386 views

Decode Arabic to Arabic Presentation Form

Objective Given an Arabic string consisting of ISO/IEC 8859-6 Arabic letters (U+0621–063A, 0640–064A), decode it to Arabic Presentation Forms-B (U+FE70–FEFF). Behavior of Arabic letters ISO/IEC ...
user avatar
  • 4,163
29 votes
31 answers
6k views

When I grow up I want to be ASCII

Task Your task is to take a character in: AÁÀÃÂBCÇDEÉÊFGHIÍJKLMNOÕÓÔPQRSTUÚVWXYZaáàãâbcçdeéêfghiíjklmnoõóôpqrstuúvwxyz and turn it into a characters in: ...
user avatar
  • 13.8k
10 votes
1 answer
258 views

Count the Shantens

Introduction to Mahjong tiles Mahjong (麻雀) is a board game that originates from China. Mahjong tiles used in this challenge are in Unicode points U+1F000 – U+1F021: ...
user avatar
  • 4,163
0 votes
1 answer
221 views

Chopping Unicode Bytes [closed]

Introduction Each Unicode codepoint can be represented as a sequence of up to 4 bytes. Because of this, it is possible to interpret some 2, 3, or 4-byte characters as multiple 1-byte characters. (See ...
user avatar
  • 2,045
9 votes
1 answer
570 views

Convert Complex Chinese Numbers into Arabic Numbers

Your task is to convert Chinese numerals into Arabic numerals. A problem similar to Convert Chinese numbers, however, more complex. Also, answers given there mostly don't satisfy all the conditions. ...
user avatar
  • 93
26 votes
3 answers
793 views

Can this village have a wedding?

The quaint hamlet of Кодгольф in the Russian far east has a problem: their population is low (below 66), and no new people have arrived for years. Moreover, after centuries of near-isolation, just ...
user avatar
12 votes
8 answers
2k views

Russian Caesar cipher

The objective Given a Russian text, encrypt it with Caesar cipher with key 16. The basic Cyrillic alphabets The basic Cyrillic alphabets are: (U+0410 – U+042F) ...
user avatar
  • 4,163
10 votes
3 answers
501 views

North Korean dictionary order

The objective Given a string of Hangul syllables, sort the characters in North Korean dictionary order. Introduction to Hangul syllables Hangul(한글) is the Korean writing system invented by Sejong ...
user avatar
  • 4,163
16 votes
5 answers
2k views

What's the current zodiac?

Display the emoji of the eastern zodiac of given time, according to given country. The eastern zodiac is a classification scheme that assigns an animal and its reputed attributes to each year in a ...
user avatar
  • 4,163
5 votes
1 answer
392 views

Test the endianness

Given a UTF-16 string, test its endianness. Rules: As long as the input is in UTF-16 without BOM, its type doesn't matter. In C++ on Windows, it can be ...
user avatar
  • 4,163
3 votes
1 answer
150 views

Decode a UTF-8 string to character byte counts [duplicate]

Given a UTF-8 string, give a string that represents byte counts of each characters. Rules: As long as the input string is encoded in UTF-8 (without BOM), its type doesn't matter. In C++, it can be <...
user avatar
  • 4,163
74 votes
12 answers
13k views

Operation Unz̖̬̜̺̬a͇͖̯͔͉l̟̭g͕̝̼͇͓̪͍o̬̝͍̹̻

I'm sure you're all familiar with Z̃͗̇̚͟Ḁ̬̹̈̊̂̏̚L̜̼͊ͣ̈́̿̚G̱̮ͩ̃͑̆ͤ̂̚Õ̷͇͉̺̜̲ͩ́ͪͬͦ͐ ̪̀ͤͨ͛̍̈͢ĝ̭͇̻̊ͮ̾͂e̬̤͔̩̋ͮ̊̈ͭ̓̃n͖͎̘̭̯̳͎͒͂̏̃̾ͯe͕̖̋ͧ͑ͪ̑r̛ͩa̴͕̥̺̺̫̾ͭ͂ͥ̄ͧ͆t͍̻̘̆o͓̥ͤͫ̃̈̂r̹̤͇̰̻̯̐ͮ̈́ͦ͂͞. If not, you can play ...
user avatar
  • 3,418
27 votes
10 answers
1k views

How fast can I say your program?

I recently decided to download some dictation software, in order to help with my writing. However, it doesn't work very well when I'm coding, since I have to change from saying words to symbols and ...
user avatar
  • 44.7k
1 vote
0 answers
99 views

Sino-Korean numerals [duplicate]

The Korean language has two sets of numerals, a native Korean numerals and Sino-Korean numerals. The native Korean numerals are mostly used for numbers under 100, such as age and time. The Sino-...
user avatar
  • 461
29 votes
20 answers
3k views

Convert to Suzhou numerals

Suzhou numerals (蘇州碼子; also 花碼) are Chinese decimal numerals: 0 〇 1 〡 一 2 〢 二 3 〣 三 4 〤 5 〥 6 〦 7 〧 8 〨 9 〩 They pretty much work like Arabic numerals, except ...
user avatar
7 votes
5 answers
371 views

Japanese pitch accent numbers

Your challenge is to turn a Japanese word and a dictionary pitch accent number into a new string where the rises and falls in pitch are marked: e.g. (2, ウシロ) → ウ/シ\ロ...
user avatar
  • 65.7k
16 votes
17 answers
1k views

Supreme Sum String

Supreme Sum String Given an input string, return the word with the highest sum of each of its unicode characters. Rules The input should be seperated by whitespace The value of each word is based ...
user avatar
  • 1,085
21 votes
11 answers
2k views

Sort of numbers

Within the recesses of Unicode characters, there exists a Unicode block of (currently) 63 characters named "Number Forms", which consists of characters that have numerical values such as the roman ...
user avatar
  • 44.7k
25 votes
12 answers
3k views

Bake me some moji

Given a string, character list, byte stream, sequence… which is both valid UTF-8 and valid Windows-1252 (most languages will probably want to take a normal UTF-8 string), convert it from (that is, ...
user avatar
  • 27.6k
1 vote
0 answers
172 views

Render a monospaced bitmap font from image [closed]

Input is in this format: image fontwidth fontheight rowwidth xoffset yoffset xgap ygap non-existent charstart thetextitself thetextitself: The text that should ...
user avatar
17 votes
4 answers
450 views

Cross-Alphabetic Characters

Background I saw this very interesting Venn Diagram on wikipedia: https://simple.wikipedia.org/wiki/Alphabet#/media/File:Venn_diagram_gr_la_ru.svg It shows the letters (physical shapes) in different ...
user avatar
6 votes
3 answers
753 views

𝘜𝘯𝘪𝘤𝘰𝘥𝘦 𝗠𝗮𝗿𝗸𝗱𝗼𝘄𝗻 F̲o̲r̲m̲a̲t̲t̲e̲r̲ (*Unicode* **Markdown** __Formatter__)

If you cannot see this post, you can use this image Your task is to create a markdown parser that outputs Unicode. It should support 𝗯𝗼𝗹𝗱, 𝘪𝘵𝘢𝘭𝘪𝘤, 𝙼𝚘𝚗𝚘𝚜𝚙𝚊𝚌𝚎, and 𝗎̲𝗇̲𝖽̲𝖾̲𝗋̲𝗅̲𝗂...
user avatar
  • 855
28 votes
12 answers
4k views

𝗠𝗮𝘁𝗵 𝖲𝖺𝗇𝗌 𝗔𝗹𝘁𝗲𝗿𝗻𝗮𝘁𝗼𝗿

Introduction Try to convert words to two different unicode fonts. Challenge Your task is to transform your input string into the 𝖬𝖺𝗍𝗁 𝖲𝖺𝗇𝗌 and 𝗠𝗮𝘁𝗵 𝗦𝗮𝗻𝘀 𝗕𝗼𝗹𝗱 unicode characters. ...
user avatar
  • 855
21 votes
11 answers
3k views

Unicode Fractions

Given a fraction in the format m/n (where m and n are coprime integers), output the corresponding Unicode fraction. Your program/function will not be expected to ...
user avatar
  • 2,723
7 votes
4 answers
629 views

Őőőőőőő, are you there?

Description While support is getting better and better for people to write in various scripts around the world using unicode, and now you can even write in emojis as well, unfortunately most fonts[...
user avatar
  • 3,779
24 votes
28 answers
4k views

Parse my Esperanto!

The famous constructed language Esperanto uses the Latin alphabet (mostly, see the linked wikipedia page for details). However, there are some characters with accents: ĉ, ĝ, ĥ, ĵ, ŝ, and ŭ. (C-...
user avatar
  • 1,419
23 votes
3 answers
2k views

Decode Faux Braille

...
user avatar
  • 14.5k
0 votes
4 answers
481 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 ...
user avatar
75 votes
16 answers
13k 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. ...
user avatar
  • 16.2k
9 votes
3 answers
582 views

Unicode rectangles

Given a matrix a of characters from u=" ╶╺╵└┕╹┖┗╴─╼┘┴┶┚┸┺╸╾━┙┵┷┛┹┻╷┌┍│├┝╿┞┡┐┬┮┤┼┾┦╀╄┑┭┯┥┽┿┩╃╇╻┎┏╽┟┢┃┠┣┒┰┲┧╁╆┨╂╊┓┱┳┪╅╈┫╉╋" the ...
user avatar
  • 14.5k