I try to parse code that include comment with Japanese and Chinese.
when I want to get all tokens spelling in a method by iterate tokens in cursor.get_tokens(), it will raise error when it try to decode some string into UTF-8 in default.
what if I got a token and want to decode it into other format like "shiftJIS"?
can add some args like "encoding" when return token.spelling ?
I try to parse code that include comment with Japanese and Chinese.
when I want to get all tokens spelling in a method by iterate tokens in cursor.get_tokens(), it will raise error when it try to decode some string into UTF-8 in default.
what if I got a token and want to decode it into other format like "shiftJIS"? can add some args like "encoding" when return token.spelling ?