search

Home  >  Q&A  >  body text

python - unicode编码问题

这个unicode 无法识别,怎么看他是啥?

\u00e8\u0091\u0089\u00e7\u008a\u00b6\u00e3\u0083\u00a2\u00e3\u0083\u008e\u00e3\u0083\u009d\u00e3\u0083\u00bc\u00e3\u0083\u00ab\u00e3\u0082\u00a2\u00e3\u0083\u00b3\u00e3\u0083\u0086\u00e3\u0083\u008a
\u2211\u00a0MUFA
巴扎黑巴扎黑2802 days ago870

reply all(3)I'll reply

  • 迷茫

    迷茫2017-04-18 09:43:58

    If you are running a Linux system, there is a very simple way. Copy them and open terminal. Then
    echo "u00e8u0091u0089u00e7u008au00b6u00e3u0083u00a2u00e3u0083u008eu00e3u0083u009du00e3u0083u00bcu00e3u0083u00abu00e3u0082u00a2u00e3u0083u00b3u00e3u0083u0086u00e3u0083u008a"

    If you are python and want to know what they use

    x = u'\u00e8\u0091\u0089\u00e7\u008a\u00b6\u00e3\u0083\u00a2\u00e3\u0083\u008e\u00e3\u0083\u009d\u00e
        ...: 3\
        ...:    ...: u0083\u00bc\u00e3\u0083\u00ab\u00e3\u0082\u00a2\u00e3\u0083\u00b3\u00e3\u0083\u0086\u00e3\u00
        ...: 83\u008a'
    print x

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-18 09:43:58

    Go to F12 on the browser and click console. Then write

    console.log('\u00e8\u0091\u0089\u00e7\u008a\u00b6\u00e3\u0083\u00a2\u00e3\u0083\u008e\u00e3\u0083\u009d\u00e3\u0083\u00bc\u00e3\u0083\u00ab\u00e3\u0082\u00a2\u00e3\u0083\u00b3\u00e3\u0083\u0086\u00e3\u0083\u008a\u2211\u00a0MUFA');

    You can see it by pressing Enter. .

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-18 09:43:58

    Leaf-shaped monopole antenna (Leaf-shaped 垕子天线)

    python3

    >>> x='\u00e8\u0091\u0089\u00e7\u008a\u00b6\u00e3\u0083\u00a2\u00e3\u0083\u008e\u00e3\u0083\u009d\u00e3\u0083\u00bc\u00e3\u0083\u00ab\u00e3\u0082\u00a2\u00e3\u0083\u00b3\u00e3\u0083\u0086\u00e3\u0083\u008a'
    >>> x
    'è\x91\x89ç\x8a¶ã\x83¢ã\x83\x8eã\x83\x9dã\x83¼ã\x83«ã\x82¢ã\x83³ã\x83\x86ã\x83\x8a'
    >>> x.encode('l1').decode('utf8')
    '葉状モノポールアンテナ'

    u00a0 就是 html实体字符 ,通常表示空格.

    >>> xx='\u2211\u00a0MUFA'
    >>> xx
    '∑\xa0MUFA'
    >>> print(xx)
    ∑ MUFA

    reply
    0
  • Cancelreply