1. Bitbucket
  2. Public Issue Tracker
  3. master
  4. Issues

Issues

Issue #7144 resolved

Encoding problems

José Rocha
created an issue

When we upload our code to bitbucket, we are getting problems with the encoding.

This code:

frmCarregar: TfrmCarregar; 
    LinhasIni:Integer; //Vai começar a ler 
    strExcepcoes: String; //Excepções do conf 
    TipoFch: String; //Não tem ficheiro

Is converted to this:

  frmCarregar: TfrmCarregar;
LinhasIni:Integer; //Vai comear a ler
strExcepcoes: String; //Excep��es do conf
TipoFch: String; //No tem ficheiro

In this case we could avoid the use of accents, because that's not important information to our users. But when we speak about UI we can't avoid them because the users need to receive information on their native language, with accents.

Comments (11)

  1. Nicolas Venegas

    For a git repository I can only reproduce this bug on a when viewing the raw source of a file. It appears like so

    frmCarregar: TfrmCarregar; 
        LinhasIni:Integer; //Vai começar a ler 
        strExcepcoes: String; //Excepções do conf 
        TipoFch: String; //Não tem ficheiro
    

    Update: I see the same behaviour for an hg repository.

  2. José Rocha reporter

    This is a git repository and it happens when I view the raw source code.

    There's one more problem with this, if we add some source code to a repo, with the correct charset, later when we clone or pull the changes from the repo we get the messed code.

  3. Brodie Rao

    Hi José,

    Do you have a link to the repository where this is happening? If it's private, you can email it to support@bitbucket.org.

    Regarding the cloning/pulling issues, Bitbucket doesn't change the contents of any files that have been pushed up. I would look at the repository's history to see when the file got messed up. It's likely someone committed bad changes, or that the changes looked fine on their machine but they don't on yours (due to encoding/locale differences).

  4. Log in to comment