Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Every new page is unable to load characters from other languages. #3323

Closed
davidsi02 opened this issue Dec 26, 2022 · 4 comments · Fixed by #3324
Closed

Every new page is unable to load characters from other languages. #3323

davidsi02 opened this issue Dec 26, 2022 · 4 comments · Fixed by #3324
Labels
bug Something isn't working Status: Fixed
Milestone

Comments

@davidsi02
Copy link

Describe the bug

For the past few days, every time I create a new page, characters from the Portuguese language (such as é, ã, ç, ì) are displayed as the "unknown character" glyph. This issue does not occur with old pages or when I duplicate an older page.

Steps to reproduce the bug

  1. Add new page.
  2. Insert a textblock using one of the following characters: é, ã, ç, ì.
  3. Execute and check results.

Expected behavior

No response

Screenshots

imagem
imagem

NuGet package version

WinUI 3 - Windows App SDK 1.2.2: 1.2.221209.1

Windows version

Windows 11 (22H2): Build 22621

Additional context

No response

@davidsi02 davidsi02 added the bug Something isn't working label Dec 26, 2022
@ghost ghost added the needs-triage label Dec 26, 2022
@yki5000
Copy link

yki5000 commented Dec 28, 2022

If i save the file in Utf-8, it works for me:
File -> Save ... As -> Dropdown button right within the Save button -> Choose "Save with Encoding".

@gabbybilka
Copy link
Member

How are you creating the new page? It looks like this method isn't setting up the file as utf-8.
cc: @bpulliam

@davidsi02
Copy link
Author

davidsi02 commented Jan 9, 2023

How are you creating the new page? It looks like this method isn't setting up the file as utf-8. cc: @bpulliam

I'm using the visual studio interface normally.
Right-click on the project-> Add New -> Page -> Add.

@bpulliam bpulliam transferred this issue from microsoft/microsoft-ui-xaml Jan 10, 2023
@ghost ghost added the Status: Fixed label Jan 11, 2023
@bpulliam bpulliam linked a pull request Jan 11, 2023 that will close this issue
@bpulliam
Copy link
Collaborator

As @yki5000 mentioned, you can save the xaml file as Utf-8, but I've also changed the templates to be Utf-8 from the start.

@gabbybilka gabbybilka added this to the 1.3 milestone Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Status: Fixed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants