Xin chào ACE,
Trong quá trình install new module mình bị báo lỗi như sau:
"UnicodeEncodeError: 'ascii' codec can't encode character u'\u1ecd' in position 7: ordinal not in range(128)".
Mình đính kèm các file ACE xem giúp dùm nha.
Thanks.
Welcome!
This community is for professionals and enthusiasts of our products and services.
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.
Báo lỗi khi tiến hành instal new module với openerp 7
Câu hỏi này đã bị gắn cờ
Bạn xem các link dưới đây.
Ngoài ra, bạn nên tránh code trên Windows cho đỡ phiền phức. Nếu code trên windows, nhớ lưu ý các sự bất tương thích giữa các character của Windows với Linux nói chung và Python nói riêng.
Về phần code, hãy sử dụng UTF-8 with BOM, ví dụ:
import codecs content = unicode(q.content.strip(codecs.BOM_UTF8), 'utf-8') parser.parse(StringIO.StringIO(content))
http://docs\.python\.org/2/howto/unicode\.html
http://docs.python.org/2/howto/unicode.html#the-unicode-type
OK, Thanks.
Chắc có lẽ chọn phương án linh động là code với English, sau đó translate sang Vietnamese.
Thanks All.
Chuẩn đấy :">