How can I print all unicode characters?

前端 未结 6 2570
陌清茗
陌清茗 2021-02-19 17:36

I want to print some unicode characters but u\'\\u1000\' up to u\'\\u1099\'. This doesn\'t work:

for i in range(1000,1100):
    s=unico         


        
6条回答
  •  生来不讨喜
    2021-02-19 18:32

    One might appreciate this php-cli version:

    It is using html entities and UTF8 decoding.

    Recent version of XTERM and others terminals supports unicode chars pretty nicely :)

    php -r 'for ($x = 0; $x < 255000; $x++) {echo html_entity_decode("&#".$x.";",ENT_NOQUOTES,"UTF-8");}'
    

提交回复
热议问题