Unicode explained | Convert characters in Chuck Norris jokes - JavaScript example
Key Takeaways
The video explains Unicode character encoding and decoding using JavaScript, demonstrating how to convert characters to and from coded form using the charCodeAt and fromCharCode methods.
Full Transcript
67 104 117 99 107 1078 111 114 114 105 115 this is how you say Chuck Norris and Unicode let's check this out in more detail in the video on textual data we learned that computers use character encoding systems to represent characters as numbers under the hood each character is assigned a number and the computer sees this number okay fine you might say this seems logical but is it possible to see these numbers for example you give me a character and I give you a number we won't talk in business yet we will discuss in my curiosity this question brings us naturally to Unicode Unicode provides us with a standard list of unique codes for each character from most of the world's writing systems before unicode there were many different coding systems out there for assigning numbers to characters one major issue with having multiple systems is that the same code or number might be assigned to multiple characters this type of issue causes problems when sending text from one computer to another this is why Unicode was created so we could have a unique code for each character hmm unique code unicode let me show you how we can encode and decode some characters using javascript if you insist the word encode is a verb that means convert to coded form with unicode we start with a character and we convert to a number so in this case the coded form is just a number we call the unicode number value a character code if we look at the string Chuck we can find the character code for any character in the string by using the dot and selecting char code @ char code at is a piece of code that will return the character code for any character at a particular index within a string let's get the code for the capital letter C at index 0 this shows us that the unicode character code for the capital letter c is indeed 67 we can verify this by using Google and searching for Unicode lists on the flip side D code is a verb that means convert from coded form to do this we take the character code 67 and we use a piece of code that is available for all strings we want to get a string from a character code string dot from char code does this for us these two pieces of code show us how we can encode and decode unicode values or in a notebook now that I've set up so we can encode and decode full sentences more easily this is publicly available so please by all means check this out and play with it yourself link in the description all right we have a list of jokes to play around with this data is in a format called JSON if you aren't familiar with that don't worry we'll cover JSON later in the playlist you'll notice that each question is decoded while the answers are encoded using Unicode this is intentional so you can have something to try out yourself below down below we have two sections a section to encode some characters and a section to decode some codes it works like this each section has an input and an output we provide the input and we get the corresponding output in real time [Music] let me show you the code that generates the output to see this we just click that arrow next to the output what I want you to notice is the use of the code that we saw in the console for encoding char code at is being used and for decoding string dot from char code is being used this shows how we can encode and decode characters using code most of the time we don't have to deal with or even think about these underlying numbers because ultimately the characters are what we care about however every time we save a file that contains textual data a character encoding is being used for this reason character encodings are sometimes a concern particularly when we want to open a file and read its data depending on where the file is from it's possible to run into encoding issues so keep character encoding in the back of your mind if you ever run into any problems reading textual data from a file let me know in the comments if you like this video and if you have any questions for this video please encode all comments using unicode before posting the gist [Music]
Original Description
Unicode provides us with a standard list of unique codes for each character from most of the world's writing systems.
1) The word “Encode” is a verb that means “convert to coded form.”
2) The word “Decode” is a verb that means “convert from coded form.”
Let's check it out!
Notebook link: https://beta.observablehq.com/@deeplizard/encode-and-decode-chuck-norris-jokes-in-unicode
Prerequisites:
Textual data explained: https://youtu.be/-XLZadCdo9Q
CLIs Explained: https://youtu.be/oBP_umJb_2U
🕒🦎 VIDEO SECTIONS 🦎🕒
00:00 Welcome to DEEPLIZARD - Go to deeplizard.com for learning resources
00:30 Help deeplizard add video timestamps - See example in the description
05:06 Collective Intelligence and the DEEPLIZARD HIVEMIND
💥🦎 DEEPLIZARD COMMUNITY RESOURCES 🦎💥
👋 Hey, we're Chris and Mandy, the creators of deeplizard!
👉 Check out the website for more learning material:
🔗 https://deeplizard.com
💻 ENROLL TO GET DOWNLOAD ACCESS TO CODE FILES
🔗 https://deeplizard.com/resources
🧠 Support collective intelligence, join the deeplizard hivemind:
🔗 https://deeplizard.com/hivemind
🧠 Use code DEEPLIZARD at checkout to receive 15% off your first Neurohacker order
👉 Use your receipt from Neurohacker to get a discount on deeplizard courses
🔗 https://neurohacker.com/shop?rfsn=6488344.d171c6
👀 CHECK OUT OUR VLOG:
🔗 https://youtube.com/deeplizardvlog
❤️🦎 Special thanks to the following polymaths of the deeplizard hivemind:
Tammy
Mano Prime
Ling Li
🚀 Boost collective intelligence by sharing this video on social media!
👀 Follow deeplizard:
Our vlog: https://youtube.com/deeplizardvlog
Facebook: https://facebook.com/deeplizard
Instagram: https://instagram.com/deeplizard
Twitter: https://twitter.com/deeplizard
Patreon: https://patreon.com/deeplizard
YouTube: https://youtube.com/deeplizard
🎓 Deep Learning with deeplizard:
Deep Learning Dictionary - https://deeplizard.com/course/ddcpailzrd
Deep Learning Fundamentals - https://deeplizard.com/course/dlcpailzrd
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from deeplizard · deeplizard · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Install Jaxx cryptocurrency wallet on Windows 10 and verify file hash
deeplizard
Jaxx cryptocurrency wallet overview - A Blockchain Interface
deeplizard
Remove Jaxx cryptocurrency wallet from Windows 10
deeplizard
Install Jaxx cryptocurrency wallet Chrome extension
deeplizard
Send Litecoin from GDAX to Jaxx wallet
deeplizard
Send Litecoin from Jaxx wallet to GDAX
deeplizard
Backup and restore Jaxx wallet with passphrase
deeplizard
Send Litecoin to Bittrex using Jaxx and monitor confirmations with BlockCypher
deeplizard
Join a mining pool on Waves platform and lease Waves
deeplizard
ZCASH Explained | An introduction to a privacy based cryptocurrency
deeplizard
ZCash t address creation with Jaxx wallet and private key blockchain discussion
deeplizard
Buy ZCash with Litecoin using the Shifty button in the Jaxx wallet
deeplizard
Buy ZCash with Litecoin using ShapeShift - FAILURE
deeplizard
Litecoin | Jaxx | Shapeshift | zcash | failed
deeplizard
Buy ZCash with Litecoin using ShapeShift - SUCCESS even with Jaxx issues
deeplizard
Explore ZCash blockchain with Zchain block explorer
deeplizard
Zchain ZCash block explorer API - PowerShell Code
deeplizard
Zchain ZCash block explorer API - Introduction
deeplizard
Zchain ZCash block explorer API - Application
deeplizard
Coinbase's Trading Platform | Previously known as GDAX
deeplizard
Coinbase Social Security Number (SSN) Requirement Explained
deeplizard
Who owns Coinbase? Here are some KEY people
deeplizard
How does Coinbase/GDAX secure Bitcoin, Litecoin, Ether?
deeplizard
Coinbase | HackerOne bug bounty program
deeplizard
Is Bitcoin safe at Coinbase/GDAX?
deeplizard
Coinbase Login Demo Using Google Authenticator (2FA)
deeplizard
Coinbase Pro - GDAX | Trading Interface Overview
deeplizard
Coinbase gives $10 in Bitcoin | Watch this before signing up
deeplizard
Coinbase around the globe | What countries are supported?
deeplizard
Order book explained | Trading concept to know
deeplizard
Bid/Ask spread explained | Trading concept to know
deeplizard
Maker vs Taker | Trading concept to know
deeplizard
Market Orders are Always TAKERS (HIGHER FEES)!
deeplizard
Buy as a MAKER (LOWER FEE) on Coinbase Pro - GDAX | Limit Order - Part 1
deeplizard
Buy as a MAKER (LOWER FEE) on Coinbase Pro - GDAX | Limit Order - Part 2
deeplizard
Time-in-force explained | Trading concept to know
deeplizard
Stop order explained | How to stop a loss | Coinbase Pro - GDAX
deeplizard
Stop Order on Coinbase Pro - GDAX | What the WARNINGS Mean
deeplizard
Market price vs Last price | Trading concept to know
deeplizard
Stop Order on Coinbase Pro - GDAX | How it is ACTIVATED
deeplizard
Stop-limit order | How to set the limit | Coinbase Pro - GDAX
deeplizard
Flash CRASH Part 1 | ETH/USD currency pair traded at $0.10
deeplizard
Slippage explained | Trading concept to know
deeplizard
Flash CRASH Part 2 | How did Coinbase Respond?
deeplizard
Buy side stop-limit order | Crypto trading strategy for buying a breakout
deeplizard
Buy side stop-limit order | Triggering under the market price
deeplizard
What is an order book?
deeplizard
What is a market?
deeplizard
What is an exchange?
deeplizard
What is a broker-dealer?
deeplizard
Keras prerequisites
deeplizard
Change Keras backend to Theano
deeplizard
#1 Order types and parameters | Trading on Coinbase Pro - GDAX
deeplizard
Trading strategy for stopping a loss | Don't trade all at once!
deeplizard
#2 Order matching engine | Trading on Coinbase Pro - GDAX
deeplizard
Batch Size in a Neural Network explained
deeplizard
Deep Learning playlist overview & Machine Learning intro
deeplizard
Artificial Neural Networks explained
deeplizard
Regularization in a Neural Network explained
deeplizard
Create confusion matrix for predictions from Keras model
deeplizard
More on: JavaScript Fundamentals
View skill →Related Reads
Chapters (3)
Welcome to DEEPLIZARD - Go to deeplizard.com for learning resources
0:30
Help deeplizard add video timestamps - See example in the description
5:06
Collective Intelligence and the DEEPLIZARD HIVEMIND
🎓
Tutor Explanation
DeepCamp AI