Re: i18n pot file

Discussion in 'Python' started by anabell, Oct 22, 2003.

  1. anabell

    anabell Guest

    > The best CHARSET to use is UTF-8 but of course you have to enter UTF-8
    data into the po file. You can write all languages in UTF-8.

    But I received this error when I tried filling 'utf-8' :
    UnicodeDecodeError: 'utf8' codec can't decode bytes in position 0-1: invalid

    > The ENCODING should be 8bit in all cases


    Is this the case with Chinese characters too? I thought its base64?
     
    anabell, Oct 22, 2003
    #1
    1. Advertisements

  2. "anabell" <> writes:

    > > The best CHARSET to use is UTF-8 but of course you have to enter UTF-8

    > data into the po file. You can write all languages in UTF-8.
    >
    > But I received this error when I tried filling 'utf-8' :
    > UnicodeDecodeError: 'utf8' codec can't decode bytes in position 0-1: invalid


    Then your PO file likely isn't in UTF-8. You need to find out what
    encoding your computer uses. As a starting point, you would need to
    tell us what operation system you use, and what "locale" you have
    activated on that system

    > > The ENCODING should be 8bit in all cases

    >
    > Is this the case with Chinese characters too? I thought its base64?


    In the literal PO file, you don't use base64, you always use "plain"
    bytes - independent of the language.

    Regards,
    Martin
     
    Martin v. =?iso-8859-15?q?L=F6wis?=, Oct 23, 2003
    #2
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Klaus
    Replies:
    0
    Views:
    4,079
    Klaus
    Jul 2, 2003
  2. Kent Tong

    i18n using resource bundle

    Kent Tong, Jul 15, 2003, in forum: Java
    Replies:
    2
    Views:
    1,077
    Kent Tong
    Jul 16, 2003
  3. Jack

    TILES: How to i18n a put

    Jack, Jul 25, 2003, in forum: Java
    Replies:
    0
    Views:
    515
  4. David Thielen

    sample struts w/ I18N and validator

    David Thielen, Aug 2, 2003, in forum: Java
    Replies:
    0
    Views:
    557
    David Thielen
    Aug 2, 2003
  5. anabell

    i18n pot file

    anabell, Oct 21, 2003, in forum: Python
    Replies:
    2
    Views:
    408
    Radovan Garabik
    Oct 21, 2003
  6. anabell

    RE: i18n pot file

    anabell, Nov 2, 2003, in forum: Python
    Replies:
    2
    Views:
    489
    ulysses
    Nov 7, 2003
  7. Replies:
    2
    Views:
    397
  8. Eric Wong
    Replies:
    0
    Views:
    143
    Eric Wong
    May 4, 2010
Loading...