Cp1252 problem

Discussion in 'Java' started by =?iso-8859-1?B?bW9vcJk=?=, Sep 27, 2006.

  1. Hi,
    My source file has Chinese characters in it, when saving the file
    Eclipse alerts it cannot be saved due to "Some characters cannot be
    mapped using "Cp1252" character encoding.". Why? Is it the problem
    about Unicode support? My machine is running on WinXP x64 Pro English.

    Regards,
    Sam Huang
     
    =?iso-8859-1?B?bW9vcJk=?=, Sep 27, 2006
    #1
    1. Advertising

  2. -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    moopâ„¢ schreef:
    > Hi,
    > My source file has Chinese characters in it, when saving the file
    > Eclipse alerts it cannot be saved due to "Some characters cannot be
    > mapped using "Cp1252" character encoding.". Why? Is it the problem
    > about Unicode support? My machine is running on WinXP x64 Pro English.


    You have to tell Eclipse you want to save the file as Unicode. The
    default is probably cp1252. File-> Properties -> Text file encoding ->
    choose UTF-8 or enter it.

    For questions about Eclipse, you’ll be better off in one of the Eclipse
    newsgroups: www.eclipse.org/news

    H.
    - --
    Hendrik Maryns
    http://tcl.sfs.uni-tuebingen.de/~hendrik/
    ==================
    http://aouw.org
    Ask smart questions, get good answers:
    http://www.catb.org/~esr/faqs/smart-questions.html
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.2 (GNU/Linux)

    iD8DBQFFGoYke+7xMGD3itQRAlYmAJ9d7GZ188bpjhfF7m8OxLGIMrwBkQCeMPup
    Z/tgWlx6fXUFpR9cyt8FRKg=
    =chqP
    -----END PGP SIGNATURE-----
     
    Hendrik Maryns, Sep 27, 2006
    #2
    1. Advertising

  3. "moopT" <> wrote in message
    news:...
    > Hi,
    > My source file has Chinese characters in it, when saving the file
    > Eclipse alerts it cannot be saved due to "Some characters cannot be
    > mapped using "Cp1252" character encoding.". Why? Is it the problem
    > about Unicode support? My machine is running on WinXP x64 Pro English.


    Because Cp1252 doesn't contain thsoe characters. Try saving the file in,
    say, UTF-8, which contains all of Unicode.
     
    Mike Schilling, Sep 27, 2006
    #3
    1. Advertising

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. Mickey Segal
    Replies:
    5
    Views:
    33,667
    Mickey Segal
    Apr 20, 2005
  2. David Eppstein

    Distinguishing cp850 and cp1252?

    David Eppstein, Nov 3, 2003, in forum: Python
    Replies:
    3
    Views:
    648
    David Eppstein
    Nov 3, 2003
  3. Do Re Mi chel La Si Do

    To circumvent the bug cp1252

    Do Re Mi chel La Si Do, May 15, 2005, in forum: Python
    Replies:
    0
    Views:
    434
    Do Re Mi chel La Si Do
    May 15, 2005
  4. Méta-MCI

    Bug? import cp1252

    Méta-MCI, May 12, 2007, in forum: Python
    Replies:
    2
    Views:
    518
    Méta-MCI
    May 14, 2007
  5. Replies:
    12
    Views:
    435
    Dennis Lee Bieber
    Nov 18, 2012
Loading...

Share This Page