GitHub actions fails because of spanish characters

Hi, I’m new to GitHub Actions so on my first try it just fails.

Check failure on line 50 in ByblosMiPH_API/Startup.cs

@github-actionsgithub-actions / build


Unexpected character '�'

This is line 50:

var ParámetrosParaBitacora = Configuration.GetSection("ParámetrosParaBitácora").Get<ParámetrosParaBitácora>();

The variables have accented characters.

The code compiles perfectly on my machine.

Why it fails when compiling on GitHub?

Is there a way to configure the use of accented characters?

Thanks in advance!

Hi @oliveriod , 

Could you please share your workflow yml content here? Which type of runner do you use? Window, Ubuntu or MacOs?  Which step failed?

It would be better if you could share me a sample project . I could not reproduce your issue in my side.

Does the line 50 of Startup.cs show correctly in code page?  

Hi Yanjingzhu!

Thanks for your reply.

Yes, line 50 shows up correctly.

I created a new very simple project that fails in the same way.

You can find it here:

Thanks again for your help.

Hi @oliveriod , 

What’s the operating system of your local work machine? Windows or Ubuntu?  

In your workflow , you choose ubuntu runnner to run your job. 

I tested using windows runner, it could build the project successfully. 

Please try  runs-on: windows-latest  . 

name: .NET Core

    branches: [master]
    branches: [master]


**runs-on: windows-latest** steps:
    - uses: actions/checkout@v2
    - name: Setup .NET Core
      uses: actions/setup-dotnet@v1
        dotnet-version: 3.1.101
    - name: Install dependencies
      run: dotnet restore
    - name: Build
      run: dotnet build --configuration Release --no-restore
    - name: Test
      run: dotnet test --no-restore --verbosity normal
1 Like

Hi Yanjingzhu!

You were right!

It works now!

Thank you very much!