Tuesday, February 24, 2015

COMP6021 Class 04.2

I planned to do exercises on generating UTF-8 and on Huffman coding. However the UTF-8 proved tricker than we expected, so we will do the Huffman in the next class.

We converted the following to UTF-8, but it took us a while to figure out how do deal with padding zeros.

Gemoji image for :cupid
1F498 
11110000:10011111:10010010:10011000 
f09f9298



Gemoji image for :couple
1F46B 
11110000:10011111:10010001:10101011 
f09f91ab




Gemoji image for :grinning
1F600
11110000:10011111:10011000:10000000 
 f09f9880


No comments: