Team Explorer Everywhere for eclipse have a problem with utf-8(without bom)

问题 Team Explorer Everywhere for eclipse have a problem with utf-8(without bom)

  • vendredi 16 mars 2012 00:37
     
     

    eclipse always use utf-8 (without bom) encode.

    When I merge a file ,some chinese character will be lost,instead of "??".

    I resave the file to utf-8(with bom). The problem has gone,but javadoc generter could not recognize "bom" head.

    Is there any solution? Thanks for help!


    djbone

Toutes les réponses

  • vendredi 16 mars 2012 03:07
     
     

    Hi DJ,

    There is a forum for "Team Foundation Server - Eclipse and Cross Platform" -- can you post your question there instead?

    Thanks!

  • vendredi 16 mars 2012 13:25
     
     

    Hi,

    are you doing automerge or merge in merge tool?

    Thanks

    Mireille

  • lundi 19 mars 2012 04:57
     
     

    merge in merge tool~

    I tried configurate other merge tool (such as Araxis Merge ),but the result is the same.

    if only use other merge tool,it's no problem!

    Thanks


    djbone

  • mardi 20 mars 2012 19:19
    Modérateur
     
     

    Have you set the encoding for those files properly in TFS?  That's how we identify bom-less files to determine what encoding they're in.

    Right click on a file in Source Control Explorer and select Properties.  Your encoding should be configured as 'UTF-8'.

    This should preserve your encodings when performing automerge or when using the "merge in merge tool" functionality.

    Unfortunately, there is no standard way to provide encodings to external tools - you will need to set those when you do the merge manually, if they are unable to properly detect encodings.

  • vendredi 6 avril 2012 15:48
     
     

    thank u for the answer!

    I had set encoding as 'UTF-8',and I using "merge in merge tool". There is the same problem. Most character (incluse chinese character) is all right,but some ,some chinese character will be lost,instead of "??".

    when I change the file head with bom,there is not the problem.but I want to use javadoc,that doesn't support file encoding as 'UTF-8 with bom'.


    djbone

  • lundi 9 avril 2012 20:55
    Modérateur
     
     

    Can you send me a copy of the three files you're merging?  (The common ancestor, the source and the target files?)

    You can email them to me at ethomson@microsoft.com, and I can investigate further.