Fwd: How to Split Chinese Character with backslash representation?

Discussion in 'Python' started by limodou, Oct 27, 2006.

  1. limodou

    limodou Guest

    ---------- Forwarded message ----------
    From: limodou <>
    Date: Oct 27, 2006 11:51 AM
    Subject: Re: How to Split Chinese Character with backslash representation?
    To: Wijaya Edward <-star.edu.sg>


    \xXX just internal representation of None ASCII, I guess above string
    is encoded with local locale, maybe gbk. You can get the bytes list
    through:

    str = '\xc5\xeb\xc7\xd5\xbc'
    list(str)

    And string is just a list of characters.
     
    limodou, Oct 27, 2006
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.