Hello,
Mike Ayers has written:
Who said that Unicode is high-tech?
Here is a device to generate UTF-8 that employs traditional tools such
as ASCII art, paper, scissors, glue, brain.
Attached is a similar device for converting Unicode scalar values
to UTF-16 (UTF-16BE, that is, but you could easily add a final step
to compute UTF-16LE, or to add a BOM).
Definitely, the world has longed for this, for years ;-) Enjoy!
Cheers,
Otto Stolz
þÿ A v e r s : P r i n t w i t h a f i x e d - w i t h f o n t , s u c h
a s L u c i d a C o n s o l e ,
a n d c u t o u t .
%T%P%P%P%P%P%P%P%P%P%P%P%P%f%P%P%P%P%P%P%P%P%P%P%P%P%P%f%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W
%Q U + 0 0 0 0 %Q W X Y Z %Q O t t o s M a g i c
P o c k e t E n c o d e r %Q
%Q U + D 7 F F %Q ! ! ! ! %Q f o r
U T F - 1 6!"%T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%c
%Q W X Y Z %Q _ _ _ _ %Q %Q
V! v v % V! v v %Q
%_% % % % % % % % % % % % %k% % % % % % % % % % % % % %b V e r s i o n 1 . 0 %Q
U! u u % U! u u %Q
%Q U + E 0 0 0 %Q W X Y Z %Q © 2 0 0 4 - 0 7 - 0 2 %Q
t t! T % t t! T %Q
%Q U + F F F F %Q ! ! ! ! %Q %Q
_! _ _ % _! _ _ %Q
%Q W X Y Z %Q _ _ _ _ %Q %Q
% % % % % % % % %<% % % % % % % % %Q
%_% % % % % % % % % % % % %k% % % % % % % % % % % % % %Z%P%P%P%P%P%P%P%P%P%P%P%P%P%c
0! 0 0 % 1 3! 8! 2 0 %Q
%Q U%P 0 0 0 1 0 0 0 0 %Q 3 1 2 t t u u v % 3 1 3 v Y Z %Q
0 0! 1! 0 1 % 2 0! 9! 2 1 %Q
%Q U%P 0 0 0 F F F F F %Q ! 2 _ _ _ _ _ % ! 3 _ ! ! %Q
0 1! 2! 0 2 % 2 1! A! 2 2 %Q
%Q T U V Y Z %Q D _ _ _ % D _ _ _ %Q
0 2! 3! 0 3 % 2 2! B! 2 3 %Q
%_% % % % % % % % % % % % %k% % % % % % % % % % % % % %<% % % % % % % % % % % % % %b
0 3! 4! 1 0 % 2 3! C! 3 0 %Q
%Q U%P 0 0 1 0 0 0 0 0 %Q 3 1 2 3 3 u u v % 3 1 3 v Y Z %Q
1 0! 5! 1 1 % 3 0! D! 3 1 %Q
%Q U%P 0 0 1 0 F F F F %Q ! ! 3 _ _ _ % ! 3 _ ! ! %Q
1 1! 6! 1 2 % 3 1! E! 3 2 %Q
%Q U V Y Z %Q D B _ _ % D _ _ _ %Q
1 2! 7! 1 3 % 3 2! F! 3 3 %Q
%Z%P%P%P%P%P%P%P%P%P%P%P%P%i%P%P%P%P%P%P%P%P%P%P%P%P%P%g%P%P%P%P%P%P%P%P%P%P%P%P%P%i%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]
. . . . : . . . . 1 . . . . : . . . . 2 . . . . : . . . . 3 . . . . : . . . . 4 . . . . : . . . . 5 . . . . : . . . . 6 . .
R e v e r s : C u t o u t a n d p a s t e o n b a c k o f a v e r s .
%T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W
%Q O t t o s M a g i c P o c k e t E n c o d e r f o r
U T F - 1 6 V e r s i o n 1 . 0 %Q
%Q U s e r s M a n u a l ( i n s p i r e d f r o m C i m a
s U T F - 8 M P E ) %Q
%`%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%c
%Q " L e f t c o l u m n : m i n a n d m a x U n i c o d e s c a l a r
v a l u e s : p i c k t h e %Q
%Q r o w t h a t a p p l i e s t o t h e c o d e p o i n t t o
b e c o n v e r t e d . %Q
%Q T &