unicode_viewer.py

Created by zetamap

Created on April 10, 2023

433 Bytes


def parser(x):
  x = hex(x)[2:]
  return "0"*(4-len(x)) + x

index, step = 0, 16**2
while index < step**2:
  print(parser(index), "->", parser(index+step))
  text = ""
  
  for i in range(index, index+step):
    try: text += "\\u" + parser(i)
    except MemoryError: pass
  
  print(eval("'{}'".format(text)))
  if input("\ncontinue? [o/n]: ") == "n": break
  else: index += step

print("\n>>> END OF THE LIST")

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our <a href="https://www.numworks.com/legal/cookies-policy/">cookies policy</a>.